DataRow.Item Property (String)
Gets or sets the data stored in the column specified by name.
Assembly: System.Data (in System.Data.dll)
The column specified by columnName cannot be found.
Occurs when you try to set a value on a deleted row.
Occurs when you try to insert a null value into a column where AllowDBNull is set to false.
The following examples demonstrate the use of the Item property to get and set the value of a specific column index. The first example gets the value of the first column in any row that a user clicks in a DataGrid control. The second sets a value passed as an argument to the method.
Available since 1.1