asp.net.ph

DataRow.SetColumnError Method

System.Data Namespace   DataRow Class


Sets the error description for a column.

Overload List

1. Sets the error description for a column specified by name.

2. Sets the error description for a column specified as a DataColumn object.

3. Sets the error description for a column specified by index.


Example

The following example sets an error description for a specified DataRow.

NOTE: This example uses one of the overloaded versions of SetColumnError. For other examples that may be available, see the individual overload topics.

private void SetColError ( DataRow myRow, int colIndex ) {
   string errorString = "Your error text here.";
   // set the error for the specified column of the row.
   myRow.SetColumnError ( colIndex, errorString );
}
  C# VB

See Also

DataRow Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 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 asp.net.ph