How to: Locate Rows that Have Errors
When working with individual columns and rows of data, there may be times when a record contains an error. You can Check the HasErrors property to determine if errors exist in a DataSet, DataTable, or DataRow.
To locate a row that has errors
Check the HasErrors property to see if there are any errors in the dataset.
If the HasErrors property is true, iterate through the collections of tables, then the rows to find the row with the error.