asp.net.ph

DataRow.Item Property ( Int32 )

System.Data Namespace   DataRow Class


Sets or retrieves the data stored in the column specified by index.

Syntax


Object variable = DataRow.Item [ columnIndex ];
... or ...
Object variable = DataRow [ columnIndex ];
  C# VB JScript

Parameters

columnIndex
The zero-based index of the column

Property Value

An Object that contains the data.

Exceptions


Exception Type Condition
IndexOutOfRangeException Occurs when the columnIndex argument is out of range.
InvalidCastException Occurs when setting the value and the new value's Type does not match DataType.
DeletedRowInaccessibleException Occurs when attempting to set a value on a deleted row.

Remarks

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

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

See Also

DataRow Members   DataRow.Item Overload List Skip Navigation Links


Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note