Bands
- 2 minutes to read
ASPxGridView allows you to organize columns in logical groups (bands) across multiple rows.
There are two kinds of bands: header bands and data cell bands. Header bands are used to organize grid columns into logical groups with hierarchical multi-row headers. Data cell bands combine the functionality of header bands with the capability to display each data record in a hierarchical manner.
Accessing Columns in Banded Layout
The ability to define bands within ASPxGridView requires a hierarchical column structure. In this case, ASPxGridView’s ASPxGridView.Columns property provides access only to root level columns. To make it easier to traverse through all columns, ASPxGridView introduces a specific ASPxGridView.AllColumns property. This property provides access to a read-only collection that contains all grid columns.
End-User Manipulations
Users can also drag bands to reorder columns or hide these groups of columns within the grid’s customization window. This is useful if you need to rearrange or hide columns while the grid preserves the group hierarchy. Refer to the following topic to learn more: Column Moving.
You can also resize and freeze columns. The GridViewColumn.FixedStyle property allows you to freeze a column. Note that you can only freeze columns and bands located at the root hierarchy level (within the grid’s ASPxGridView.Columns collection).