Lisa - if you trap the CurrentCellChanged event
http://msdn.microsoft.com/library/de...angedtopic.asp
you can probably get what you need. You can also use Extended properties
for instance if your validation is simple to create a rule to validate
against. If I understand you correctly though, I think the
CurrentCellChanged event in conjunction with the specific column will get
you what you need.
HTH,
Bill
<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
>