Hi,

Can anyone pls fill out the Question marked section in the following data set validation code?

I want to select the row that caused the error in the grid.

If the grid has not been sorted, I can simply put
dgrDataGrid.Select(intRow). But since the grid can be sorted, the ordinal positions of the row in the dataset and the datagrid would differ. But I know BindingManger can be used, but don't know how to locate the dataset's row in the datagrid.

For intRow=0 to gdstGrid.Tables(0).Rows.Count-1
drwDetailRow=gdstGrid.Tables(0).Rows(intRow)
If Not ValidateDetailRow(drwDetailRow) Then
SetStatusBarMsg(drwDetailRow.GetColumnError(0))
dgrDataGrid.Select(???)
End If
Next

(Btw, inside ValidateDetailRow() I set the columnerror.)

Any help would be greatly appreciated...

Thanks,
Mohan