ListView.CreateDataItem(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Samarbeta med oss på GitHub
Källan för det här innehållet finns på GitHub, där du även kan skapa och granska ärenden och pull-begäranden. Se vår deltagarguide för mer information.