System.Data.DataRow.GetColumnError Method

Gets the error description for the column specified by index.

Syntax

public string GetColumnError (int columnIndex)

Parameters

columnIndex
The zero-based index of the column.

Returns

The text of the error description.

Remarks

Use the DataRow.SetColumnError(int, string) method to set column errors.

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.

To clear all errors for the columns collection, use the DataRow.ClearErrors method.

Requirements

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