Data validation on row of DataGrid

  • Thread starter Thread starter lisa.biagioni
  • Start date Start date
L

lisa.biagioni

Hi,

I have a DataGrid bound to a DataTable in a Windows Forms application.
I'm using the DataTable.RowChanging event to trigger the validation of
a row when the user has modified a row and clicks off of it. The
problem is that there is no cancel on the RowChanging event. So, if
the validation on the row fails, how do you keep the pointer on the row
of the DataGrid where the error occurred?

Any help anyone could give me on this would be greatly appreciated!

Thanks in advance,

Lisa
 
Back
Top