Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

DataTable::GetErrors Method ()

 

Gets an array of DataRow objects that contain errors.

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

public:
array<DataRow^>^ GetErrors()

Return Value

Type: array<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:
© 2017 Microsoft