Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Last Row in Data Grid [modified]

Last Row in Data Grid [modified]

Scheduled Pinned Locked Moved C#
csscomquestion
10 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MJay
    wrote on last edited by
    #1

    by default, the datagrid add a pending new row after i have add my own row, the pending row has a * in front of the first column, is there anyway i can disable this pending new row? or is there anyway i could disable the user to add a new row on the datagrid itself?since the dataentry is done by another routine Below is the screenshot http://img.photobucket.com/albums/v608/mjay83/datagrid.jpg[^] -- modified at 3:07 Thursday 2nd November, 2006

    Q T 2 Replies Last reply
    0
    • M MJay

      by default, the datagrid add a pending new row after i have add my own row, the pending row has a * in front of the first column, is there anyway i can disable this pending new row? or is there anyway i could disable the user to add a new row on the datagrid itself?since the dataentry is done by another routine Below is the screenshot http://img.photobucket.com/albums/v608/mjay83/datagrid.jpg[^] -- modified at 3:07 Thursday 2nd November, 2006

      Q Offline
      Q Offline
      quiteSmart
      wrote on last edited by
      #2

      hi you can simply set the allowUserToAddRow property of the data grid to false. this will eliminate the row of the * that u don't like and will allow the user of that interface to only view the table and the data in it. hope it hleps if you need more help plz contact me on MSN: jamilaboukhalil@hotmail.com Jamil Abou Khalil

      M 1 Reply Last reply
      0
      • Q quiteSmart

        hi you can simply set the allowUserToAddRow property of the data grid to false. this will eliminate the row of the * that u don't like and will allow the user of that interface to only view the table and the data in it. hope it hleps if you need more help plz contact me on MSN: jamilaboukhalil@hotmail.com Jamil Abou Khalil

        M Offline
        M Offline
        MJay
        wrote on last edited by
        #3

        Hi Jamil, thanks for reply but i cant find the property u mentioned:doh: i am using VS 2003, please advise ;) Thanks a again:-O

        Q 1 Reply Last reply
        0
        • M MJay

          Hi Jamil, thanks for reply but i cant find the property u mentioned:doh: i am using VS 2003, please advise ;) Thanks a again:-O

          Q Offline
          Q Offline
          quiteSmart
          wrote on last edited by
          #4

          hi sorry i don't know about vs2003 but i am sure that this property is one of the properties of the datagrid of vs2005. I am sorry about that. p.s: u should upgrade to vs2005 it is more relaiable and more friendly and have more functionalities. best regards jamil abou khalil

          M 1 Reply Last reply
          0
          • Q quiteSmart

            hi sorry i don't know about vs2003 but i am sure that this property is one of the properties of the datagrid of vs2005. I am sorry about that. p.s: u should upgrade to vs2005 it is more relaiable and more friendly and have more functionalities. best regards jamil abou khalil

            M Offline
            M Offline
            MJay
            wrote on last edited by
            #5

            Thanks for reply again It is ok, i dun think my company gonna purchase license for VS 2005 though:rolleyes: Thanks anyway;)

            Q 2 Replies Last reply
            0
            • M MJay

              Thanks for reply again It is ok, i dun think my company gonna purchase license for VS 2005 though:rolleyes: Thanks anyway;)

              Q Offline
              Q Offline
              quiteSmart
              wrote on last edited by
              #6

              Change you comapny then :rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes::rolleyes:

              1 Reply Last reply
              0
              • M MJay

                by default, the datagrid add a pending new row after i have add my own row, the pending row has a * in front of the first column, is there anyway i can disable this pending new row? or is there anyway i could disable the user to add a new row on the datagrid itself?since the dataentry is done by another routine Below is the screenshot http://img.photobucket.com/albums/v608/mjay83/datagrid.jpg[^] -- modified at 3:07 Thursday 2nd November, 2006

                T Offline
                T Offline
                Tamimi Code
                wrote on last edited by
                #7

                try to use the read only property of the grid

                When you get mad...THINK twice that the only advice Tamimi - Code

                M 1 Reply Last reply
                0
                • T Tamimi Code

                  try to use the read only property of the grid

                  When you get mad...THINK twice that the only advice Tamimi - Code

                  M Offline
                  M Offline
                  MJay
                  wrote on last edited by
                  #8

                  Hi Tamimi, The Read only mode wont work for me becoz there is some column i would like the user can edit it on the fly.. thanks for reply anyway ;)

                  T 1 Reply Last reply
                  0
                  • M MJay

                    Thanks for reply again It is ok, i dun think my company gonna purchase license for VS 2005 though:rolleyes: Thanks anyway;)

                    Q Offline
                    Q Offline
                    quiteSmart
                    wrote on last edited by
                    #9

                    hi again, i think i have the solution for you. in the columns property of the datagarid you can navigate throught the columns that appear in the datagrid view. and for each column there is some properties on the right hand side of the window that appear when you click on the columns property. there u can set the column to be frozen. this means that the column is read only. tell me if this works ;) best regards jamil abou khalil

                    1 Reply Last reply
                    0
                    • M MJay

                      Hi Tamimi, The Read only mode wont work for me becoz there is some column i would like the user can edit it on the fly.. thanks for reply anyway ;)

                      T Offline
                      T Offline
                      Tamimi Code
                      wrote on last edited by
                      #10

                      trust me, there is no way to do this........... i tried to do this several times with no luck

                      When you get mad...THINK twice that the only advice Tamimi - Code

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups