asp.net.ph

DataRow.Item Property ( DataColumn )

System.Data Namespace   DataRow Class


Sets or retrieves the data stored in the specified DataColumn.

Syntax


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

Parameters

column
A DataColumn that contains the data.

Property Value

An Object that contains the data.

Exceptions


Exception Type Condition
ArgumentNullException Occurs when the column is null.
ArgumentException Occurs when the column does not belong to this table.
InvalidCastException Occurs when the data types of the value and the column do not match.
DeletedRowInaccessibleException Occurs when an attempt was made 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 immediate 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