System.Data Namespace DataRow Class
Returns the specified version of data in the given column name.
Object variable = DataRow.Item [ columnName, version ];
... or ...
Object variable = DataRow [ columnName, version ];
dim variable as Object = DataRow.Item ( columnName, version )
... or ...
dim variable as Object = DataRow ( columnName, version )
variable : Object = DataRow.Item ( columnName, version );
... or ...
variable : Object = DataRow ( columnName, version ); |
|
C# |
VB |
JScript |
- columnName
- The name of 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. The RowState property describes the state of the entire row in relation to its parent DataTable.
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