System.Data Namespace DataRow Class
Returns the specified version of data in the specified DataColumn.
Object variable = DataRow.Item [ column, version ];
... or ...
Object variable = DataRow [ column, version ];
dim variable as Object = DataRow.Item ( column, version )
... or ...
dim variable as Object = DataRow ( column, version )
variable : Object = DataRow.Item ( column, version );
... or ...
variable : Object = DataRow ( column, version ); |
|
C# |
VB |
JScript |
- 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.
An Object that contains the data.
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.
DataRow Members DataRow.Item Overload List DataRowVersion