System.Web.UI.IDataItemContainer.DataItemIndex Property

When implemented, gets the index of the data item bound to a control.

Syntax

public int DataItemIndex { get; }

Value

Documentation for this section has not yet been entered.

Remarks

In implementing classes such as System.Web.UI.WebControls.FormView, System.Web.UI.WebControls.GridViewRow, and System.Web.UI.WebControls.DetailsView, the IDataItemContainer.DataItemIndex property is used to determine the index of the data item bound to the control from the data source. The IDataItemContainer.DataItemIndex property does not refer to the index of the data item as displayed by the data control.

Requirements

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