SgDotNet
Singapore Professional .NET User Group -For Cool Developers

Blank Row in DataGridView to insert new row

rated by 0 users
This post has 1 Reply | 1 Follower

Top 75 Contributor
Posts 29
wrytat Posted: 03-25-2006 8:01 PM
I have a datagridview in my windows form that show some data from a table in my MS SQL database. I want to disallow users from changing the values of the data, so I made it read-only. But I want to have a blank row at the bottom for users to insert new row of data into the table. The user will just click on a button after filling up the blank row and the row will be inserted. Is there any way that I can do that?
Top 500 Contributor
Posts 6

Derive the class datagriew and override edit method.

If the selected row is not the last one return, else call base edit method.

Page 1 of 1 (2 items) | RSS
Copyright SgDotNet 2004-2008
Powered by Community Server (Commercial Edition), by Telligent Systems