System.Data.DataRow.HasErrors Property

Gets a value that indicates whether there are errors in a row.

Syntax

public bool HasErrors { get; }

Value

Documentation for this section has not yet been entered.

Remarks

HasErrors returns true if any System.Data.DataColumn object in the row contains an error, or if the DataRow.RowError property of the System.Data.DataRow is not an empty string.

When validating data, you can set an error on any column in a row. Such a column, when displayed in the System.Windows.Forms.DataGrid control, is marked with a red exclamation point to signal to the user that the column is in error.

Use DataRow.SetColumnError(int, string) to set an error on any column.

Use the DataRow.GetColumnError(int) and GetColumnsInError methods to return columns with errors.

The DataRow.ClearErrors method clears all errors for the row.

Requirements

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