DataRow Class

The DataRow object represents a row of information in a table (see Tables C.8 and C.9).

Table C.8. Properties of the DataRow Object
Property Description
HasErrors Returns true if the DataRow has any errors.
Item Gets or sets the Data value in a specified DataColumn.
ItemArray Gets or sets the data for DataRow through an array of values.
RowError Gets or sets a user-defined error message for the DataRow.
RowState Returns the current state of the DataRow. The state can have any of the following values:
  • Detached— The DataRow is created but is not part of a DataRowCollection.

  • Added— The DataRow has been added to a DataTable row’s collection, but AcceptChanges has not been called yet.

  • Deleted— The DataRow has been deleted from a DataTable ...

Get Inside ASP.NET now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.