WebGrid provides a grouping feature which is very helpful for the user to perform data grouping.
In this topic, you will learn the basic thing on how to apply Grouping feature in WebGrid.
To group data in WebGrid
- Open WebGrid.NET Designer.
- Select the Allow Grouping properties in QuickStart - Popular Settings - Main Features section
- Click OK to apply the changes.
- Run the project.
- Select the column that you want to group.
- Right click the column header and choose Group By this field.
- Or, you can right click the column header and choose Group By Box then you can drag the column header to the black box above the WebGrid. You can display GroupByBox as well when the page loads by setting GroupByBoxVisible to True.
- Finally, WebGrid will automatically group the data.
To ungroup data in WebGrid
- Drag the column header from the GroupBox to the WebGrid.
- WebGrid will automatically ungroup the data.
References
AllowGrouping Property
GroupByBoxVisible Property
Other Resources
Walkthrough Topics
How-to Topics