The following code shows how to group by two columns (“Country” and “City”).
((GridViewDataColumn)ASPxGridView1.Columns["City"]).GroupBy(); ASPxGridView1.GroupBy(ASPxGridView1.Columns["Country"], 0);
To Ungroup:
((GridViewDataColumn)ASPxGridView1.Columns["City"]).UnGroup(); ASPxGridView1.UnGroup(ASPxGridView1.Columns["Country"], 0);
Related posts:
Determine If string contains more than 1 value in C#
Enable Caching in IIS to Speed Performance
How to use the second argument of Response.Redirect: True or False
How to Solve The 'Object reference not set to an instance of an object' error in Batch Edit mode for...
How to solve 'Size property has an invalid size of 0' in C#