| |||||||
DataTable.GetErrors MethodSystem.Data Namespace DataTable Class Returns an array of DataRow objects that contain errors. [ VB ] Public Function GetErrors ( ) As DataRow ( ) [ C# ] public DataRow [ ] GetErrors ( ); [ C++ ] public: DataRow* GetErrors ( ) [ ]; [ JScript ] public function GetErrors ( ) : DataRow [ ]; Return ValueAn array of DataRow objects that have errors. RemarksInvoke GetErrors after invoking the DataSet class's GetChanges method. Also, be sure you do not invoke the AcceptChanges on the DataTable until after all errors have been succesfully resolved, and the DataSet re-submitted for updating. ExampleThe following example uses the GetErrors method to return an array of DataRow objects that have errors.
See AlsoDataTable Members AcceptChanges HasErrors RowError SetColumnError |
| ||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme