DataGridView Control Question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hdbbdh
    New Member
    • Dec 2008
    • 24

    DataGridView Control Question

    Hi everyone,
    I don’t know how I will ask, but I will explain to you what I want exactly.
    I have DataGridView control in my form, and when the form is started, the DataGridView will has some rows.
    Now I need to allow the user to add new rows and edit only the new rows.
    For example, let’s say I have these rows
    Office IP
    --------- ---
    General Manager 103
    IT 107
    Safety 104

    These rows will appear when the form is loaded (I will call these rows as group1), and the user can add additional rows (as group2) like:
    Office IP
    --------- ---
    Production 105
    Laboratory 108
    Security 110

    The user can modify group2 rows (Add, Delete and Edit), but he can not modify the group1 rows.

    Now, How I can do that?
    Note1: Office and IP are the column name.
    Note2: Group1 rows is taken from Access Database.

    Thank you
  • truezplaya
    New Member
    • Jul 2007
    • 115

    #2
    If the columns are always going to be the same you could start off by putting them in to the dataGridView(ha rdcoded) first of all, Have a search around google no one will write the code for you here

    Comment

    Working...