ListView.CreateItemsInGroups 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 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.
- 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.