DataTable.GetErrors Method ()

 

Gets an array of DataRow objects that contain errors.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

member GetErrors : unit -> DataRow[]

Return Value

Type: System.Data.DataRow[]

An array of DataRow objects that have errors.

Returns the list of DataRow objects that have RowError set. For example, errors can occur when calling Update with ContinueUpdateOnError set to true. Do not invoke AcceptChanges on the DataTable until you resolve all errors and resubmit the DataSet for updating.

The following example uses the GetErrors method to return an array of DataRow objects that have errors.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: