DataListItem.IDataItemContainer.DisplayIndex Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

This API supports the product infrastructure and is not intended to be used directly from your code.

For a description of this member, see IDataItemContainer.DisplayIndex.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

int IDataItemContainer.DisplayIndex { get; }

Property Value

Type: System.Int32

An integer representing the position of the data item as displayed in a control.

Typically, you should use the DataListItem.ItemIndex property to retrieve the data-item index for a DataListItem object.

The IDataItemContainer.DisplayIndex member is an explicit interface member implementation. It can be used only when the DataListItem instance is cast to an IDataItemContainer interface.

.NET Framework
Available since 2.0
Return to top
Show: