Επεξεργασία

Κοινή χρήση μέσω


ListView.CreateDataItem(Int32, Int32) Method

Definition

Creates a data item in the ListView control.

protected:
 virtual System::Web::UI::WebControls::ListViewDataItem ^ CreateDataItem(int dataItemIndex, int displayIndex);
protected virtual System.Web.UI.WebControls.ListViewDataItem CreateDataItem (int dataItemIndex, int displayIndex);
abstract member CreateDataItem : int * int -> System.Web.UI.WebControls.ListViewDataItem
override this.CreateDataItem : int * int -> System.Web.UI.WebControls.ListViewDataItem
Protected Overridable Function CreateDataItem (dataItemIndex As Integer, displayIndex As Integer) As ListViewDataItem

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

See also