Eliminate adding rows to grid...

  • Thread starter Thread starter VM
  • Start date Start date
V

VM

In the Windows datagrid (if read-only is false), a user can add another row
to the grid if the Tab key is pressed when the cursor's in the last row and
last column. Is there any way to eliminate this without making the grid
read-only? I need to be able to modify the data in the grid and to add more
rows to the grid.
Thanks.
 
There are some options to do this
1) make your datasource with certain number of rows
2) override insert event and make e.Cancel on add
3) make your datasouce read only

Hope it helps
 
Back
Top