| |||||||||
DataSet.HasErrors PropertySystem.Data Namespace DataSet Class Checks whether there are errors in any of the rows in any of the tables of this DataSet. Syntax
Property ValueThis property returns only a boolean value: true if any table has errors; otherwise, false. The property is read only with no default value. RemarksThe HasErrors property is usually consulted after creating using the GetChanges method. Check the HasErrors property of the DataSet created with the GetChanges method to determine if any errors exists. If so, you should reconcile the errors before proceeding to update the data source with the changes. Each DataTable in a DataSet also has a HasErrors property. Use the DataSet object's HasErrors to determine if any table has errors before checking individual DataTable objects. If a DataTable has errors, the GetErrors method returns an array of DataRow objects that have errors. ExampleThe following example uses the HasErrors property to determine whether a DataSet object contains errors. If so, the errors for each DataRow in each DataTable are printed.
See AlsoDataSet Members GetChanges HasChanges |
| ||||||||
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