ListViewDataItem(Int32, Int32) Constructor

Definition

Initializes a new instance of the ListViewDataItem class.

public:
 ListViewDataItem(int dataItemIndex, int displayIndex);
public ListViewDataItem (int dataItemIndex, int displayIndex);
new System.Web.UI.WebControls.ListViewDataItem : int * int -> System.Web.UI.WebControls.ListViewDataItem
Public Sub New (dataItemIndex As Integer, displayIndex As Integer)

Parameters

dataItemIndex
Int32

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

displayIndex
Int32

The position of the data item as displayed in the ListView control.

Remarks

The following table shows initial property values for an instance of ListViewDataItem class.

Property Initial Value
DataItemIndex The value of the dataItemIndex parameter.
DisplayIndex The value of the displayIndex parameter.

Applies to

See also