ListView.CreateDataItem(Int32, Int32) Method

Definition

Creates a data item in the ListView control.

C#
protected virtual System.Web.UI.WebControls.ListViewDataItem CreateDataItem(int dataItemIndex, int displayIndex);

Parameters

dataItemIndex
Int32

The index of the data item in the underlying data source object.

displayIndex
Int32

The display index of the data item in the ListView control.

Returns

A data item that is created by using the specified parameters.

Remarks

This method is primarily used by control developers to extend the ListView control.

Applies to

Produkt Verzie
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also