Intersoft WebGrid Documentation
How-to: Perform grouping and ungrouping in WebGrid
See Also Send comments on this topic.

Glossary Item Box

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

  1. Open WebGrid.NET Designer.
  2. Select the Allow Grouping properties in QuickStart - Popular Settings - Main Features section
  3. Click OK to apply the changes.
  4. Run the project. 
  5. Select the column that you want to group.
  6. Right click the column header and choose Group By this field.
  7. 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.
  8. Finally, WebGrid will automatically group the data.

To ungroup data in WebGrid

  1. Drag the column header from the GroupBox to the WebGrid.
  2. WebGrid will automatically ungroup the data.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.