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




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