WebGrid provides feature to group column initially from designer.
In this topic, you will learn how to group column initially.
To group column initially
- Bind WebGrid
to AccessDataSource (Using Customers table from NorthWind data source).
- Right click on WebGrid and choose WebGrid Designer.
- Click See all properties. Set GroupByBoxVisible
to True.
- Switch to Advanced tab. Expand RootTable and select
GroupColumns.
- Add a column. Set ColumnMember to Country,
SortOrder to Ascending.
- Run the project. WebGrid will group Country column initially.