Grouping a nested table at runtime


Hello,

Is it possible to group a nested table (i.e. subgrid) in a GridGroupingControl at runtime. I know this can be done at design time in code e.g.

this.gridGroupingControl1.TableDescriptor.Relations[0].ChildTableDescriptor.GroupedColumns.Add("CategoryName", ListSortDirection.Descending);

However i cannot get it to work at design time. Can a "ShowGroupDropArea" be applied to a nested grid - so that end users can drag and drop columns for the purpose of grouping, like they do at the top level?

Regards


1 Reply

AD Administrator Syncfusion Team June 4, 2009 06:49 PM UTC

In a GridGroupingControl with nested tables, the child tables share the same drop area as the parent table. (The drop area becomes a multiline object.) So, just setting ShowGroupDropArea = true should be all that is necesary to enable user grouping at runtime. Take a look at this sample:
Syncfusion\EssentialStudio\7.2.0.20\Windows\Grid.Grouping.Windows\Samples\2.0\Relations And Hierarchy\Hierarchy View Demo

Loader.
Up arrow icon