Edit

Share via


ListView.CreateItemsInGroups Method

Definition

Creates the ListView control hierarchy in groups.

protected:
 virtual System::Collections::Generic::IList<System::Web::UI::WebControls::ListViewDataItem ^> ^ CreateItemsInGroups(System::Web::UI::WebControls::ListViewPagedDataSource ^ dataSource, bool dataBinding, System::Web::UI::WebControls::InsertItemPosition insertPosition, System::Collections::ArrayList ^ keyArray);
protected virtual System.Collections.Generic.IList<System.Web.UI.WebControls.ListViewDataItem> CreateItemsInGroups (System.Web.UI.WebControls.ListViewPagedDataSource dataSource, bool dataBinding, System.Web.UI.WebControls.InsertItemPosition insertPosition, System.Collections.ArrayList keyArray);
abstract member CreateItemsInGroups : System.Web.UI.WebControls.ListViewPagedDataSource * bool * System.Web.UI.WebControls.InsertItemPosition * System.Collections.ArrayList -> System.Collections.Generic.IList<System.Web.UI.WebControls.ListViewDataItem>
override this.CreateItemsInGroups : System.Web.UI.WebControls.ListViewPagedDataSource * bool * System.Web.UI.WebControls.InsertItemPosition * System.Collections.ArrayList -> System.Collections.Generic.IList<System.Web.UI.WebControls.ListViewDataItem>
Protected Overridable Function CreateItemsInGroups (dataSource As ListViewPagedDataSource, dataBinding As Boolean, insertPosition As InsertItemPosition, keyArray As ArrayList) As IList(Of ListViewDataItem)

Parameters

dataSource
ListViewPagedDataSource

The data source.

dataBinding
Boolean

true to indicate that the ListView control is bound to data; otherwise, false.

insertPosition
InsertItemPosition

One of the InsertItemPosition values.

keyArray
ArrayList

An array that represents the data-key value of each item in the ListView control.

Returns

An object that contains all the data items of the current page of data in a ListView control.

Exceptions

The ListView control does not have an item placeholder specified.

Remarks

The CreateItemsInGroups method is used to create the control hierarchy of the ListView control in groups. This method is used by the ListView control only when the GroupTemplate and GroupItemCount properties are defined.

Note

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

Applies to

See also