GridGroupingControl: From grouped to non-grouped (flat)

Hello

I have retrieved data with LINQ to SQL from database and it's now grouped to the GridGroupingControl. I would like to get it "flatted".

Like in this example:

http://www.syncfusion.com/products/windows-forms/grid/grouping

I would like to get from the lower presentation to upper presentation. Is that possible?


Thanks for any reply!

1 Reply

RC Rajadurai C Syncfusion Team September 1, 2009 10:13 AM UTC

Hi Ville,

Thanks for your interest in Syncfusion Products.

The table can be ungrouped by removing the grouped column from the groupedcolumns collection. Please refer to the following code.

Syncfusion.Windows.Forms.Grid.Grouping.GridTableDescriptor td = this.gridGroupingControl1.GetTableDescriptor ([tablename]);//Employees tablename to be passed as argument
td.GroupedColumns.Remove ("Title");

This displays the grid with ungrouped data.

Regards,
Rajadurai

Loader.
Up arrow icon