Disallowing insert and delete of rows in a winforms datagrid
Posted on 2004-09-15
I am using a winforms datagrid to display data from a database. I wish to allow the user to modify the existing records and save the changes, but NOT delete or insert any records.
I am currently using the grid with the ReadOnly property set to False.
This works well for the modifying of existing records, but there is still a "New Row" (displayed with a * on the left hand side) at the bottom of the grid.
Does anybody know how to remove this row from the grid and still keep the ReadOnly property set to False??