EditRow (instead of Cell) in DataGridView

bri189a

Senior Contributor
Joined
Sep 11, 2003
Messages
1,004
Location
VA
I do ASP.NET normally, I'm doing a utility program that uses a DataGridView. The data (via a BoundDataSource) comes from an intra-department WebService. I've figured out that I can bind an event to the BoundDataSource_ListChanged event to detect when a cell has been updated and update data through that Web Service but the problem is that you often update several cells on the same row, so each time I move to a cell I'm calling an update method on the web service. It would be MUCH better to have a Row.BeginEdit() and Row.EndEdit() method, but there is no such thing. Hooking up to RowEnter and RowExit hasn't proved very useful.

I'm sure a lot of this has to deal with the fact that I'm using to ASP.NET where you update and entire row at a time (not a cell) so your trips to a data store are minimized, but the WinForms version doesn't seem to want to let you edit an entire row at once. This is very frustrating, what am I doing wrong?
 
Back
Top