ListView::GroupItemCount Property
Gets or sets the number of items to display per group in a ListView control.
Assembly: System.Web.Extensions (in System.Web.Extensions.dll)
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The GroupItemCount property is set to a value less than 1. |
Use the GroupItemCount property to specify the number of items to be grouped together in the ListView control. (In other words, this specifies the number of items to display for each group of the control.) For each group, the ListView control renders the contents of the GroupTemplate template and replaces the item placeholder with the actual item content. It does this as many times as the number of items defined by the GroupItemCount property.
You can use GroupItemCount with the GroupTemplate template to create a tiled layout in the ListView control. In a tiled table layout, the items are repeated horizontally in a row. The numbers of times that an item is repeated is specified by the GroupItemCount property.
Available since 3.5