System.Data.DataRow.ClearErrors Method

Clears the errors for the row. This includes the DataRow.RowError and errors set with DataRow.SetColumnError(int, string).

Syntax

public void ClearErrors ()

Remarks

Use DataRow.SetColumnError(int, string) and DataRow.GetColumnError(int) to set and return errors for individual columns.

Set the DataRow.RowError property to set an error that applies to the whole row.

To determine whether any errors exist for the columns collection, use the DataRow.HasErrors method. Consequently, you can use the DataRow.GetColumnsInError method to retrieve all the columns with errors.

Requirements

Namespace: System.Data
Assembly: System.Data (in System.Data.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0