asp.net.ph

DataRow.GetColumnError Method

System.Data Namespace   DataRow Class


Returns the error description for a column.

Overload List

1. Returns the error description for a column specified by index.

2. Returns the error description for a column specified by name.

3. Returns the error description of a specified DataColumn.


Example

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

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

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

private void PrintColError ( DataRow myRow, int colIndex ) {
   // print the error of a specified column.
   Response.Write ( myRow.GetColumnError ( colIndex ) );
}
  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