Eliminate adding rows to grid...

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.
 
T

Tamir Khason

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top