System.Web.UI.WebControls.GridViewRow.DataItem Property

Gets the underlying data object to which the System.Web.UI.WebControls.GridViewRow object is bound.

Syntax

public virtual object DataItem { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Use the GridViewRow.DataItem property to access the properties of the underlying data object to which the System.Web.UI.WebControls.GridViewRow object is bound. The GridViewRow.DataItem property is only available during and after the GridView.RowDataBound event of a System.Web.UI.WebControls.GridView control.

Note:

This property applies only to data rows.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0