ListView.CreateItemsInGroups Method

Definition

Creates the ListView control hierarchy in groups.

C#
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);

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

Product Versions
.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