Datagridview cellvalidating not working
Value But returns an error stating that this is a read-only value.
When is the cell validated event suppose to be fired I have a simple form with a Data View Grid and a button (among other things).
It seems like Cell Validated is being called in the middle of Rows.
Clear() and the grid is in an undetermined state, but only soemtimes.-Tim I gave Validate() a try, but it had no affect on when Cell Validating() was called.
This of course is a problem because the cell in question no longer exists.
The order of events in the trace is basically Button_Click(...)Data Grid View Row Collection. Clear Internal(...)On Clearing Rows()On Clearing Rows()set_Current Cell(...)Set Current Cell Address Core(...)End Edit(...)Commit Edit(...)On Cell Validated(...)Data View Grid_Cell Validated(...) Ken Tucker I would have thought the Data Grid View Cell Validating event would have fired before the button click event.