asp.net.ph

DataRow.Item Property ( DataColumn, DataRowVersion )

System.Data Namespace   DataRow Class


Returns the specified version of data in the specified DataColumn.

Syntax


Object variable = DataRow.Item [ column, version ];
... or ...
Object variable = DataRow [ column, version ];
  C# VB JScript

Parameters

column
A DataColumn that contains information about the column.
version
One of the DataRowVersion values that specifies the desired row version. Possible values are Default, Original, Current, and Proposed.

Property Value

An Object that contains the data.

Exceptions


Exception Type Condition
ArgumentNullException Occurs when the column argument contains null.
ArgumentException Occurs when the column does not belong to the table.
VersionNotFoundException Occurs when the row does not have this version of data.

Remarks

The version shouldn't be confused with the RowState property. The version argument describes the state of the data contained by the column in relation to the column's original value.

When setting the property, an exception will be thrown if an exception occurs in the ColumnChanging event.

If this is an immediate edit, see EndEdit for the exceptions that can be thrown.

See Also

DataRow Members   DataRow.Item Overload List   DataRowVersion 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