Datagrid Row Validation

It seems as if error checking only occurs when the grid has a cell change event.
Thus if you have a new row and the user never enters a required value field the cell never has a value change and the datasources object never has a Set for the field (thus no object error checking occurs).
I guess you need to do validation on the row level when ever the grid leaves the row edit mode?
Any suggestions on the best way to ensure all the fields in a new row are error checked.
[493 byte] By [chuck02323] at [2007-12-16]
# 1
Use the RowValidating event to ensure that all the fields on the new row are error checked. You can also use the CellValidating event.

Hope this helps,
-mark
DataGridView Program Manager
Microsoft
This post is provided "as-is"

MarkRideout at 2007-9-9 > top of Msdn Tech,Windows Forms,Windows Forms General...