Data validation on row of DataGrid

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top