System.Data.DataRow.GetColumnsInError Method

Gets an array of columns that have errors.

Syntax

public DataColumn[] GetColumnsInError ()

Returns

An array of System.Data.DataColumn objects that contain errors.

Remarks

The DataRow.GetColumnsInError lets you reduce the number of System.Data.DataColumn objects that must be processed for errors by returning only those columns that have an error. Errors can be set to individual columns with the DataRow.SetColumnError(int, string) method. To further reduce the number of processing, examine the DataRow.HasErrors property of the System.Data.DataRow class to determine whether a System.Data.DataRow has errors before invoking DataRow.GetColumnsInError.

Use the DataRow.ClearErrors method to clear all errors on the row. This includes the DataRow.RowError.

Requirements

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