We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Grid Grouping Control

When grouping an grid, by default the groups within the grid is collapsed. How can you have it expanded by default?


2 Replies

LS Lingaraj S Syncfusion Team April 14, 2009 06:53 AM UTC

Hi Ramesh,

Thank you for your interest in Syncfusion product.

In GridGroupingControl, the CategorizedRecords event is fired when the grouped columns added. If you want expand the group when dropped the column in GroupDropArea. please try using ExpandAllGroups() method in CategorizedRecords event.

Please refer the code below:

this.gridGroupingControl1.Table.CategorizedRecords += new Syncfusion.Grouping.TableEventHandler(Table_CategorizedRecords);
void Table_CategorizedRecords(object sender, Syncfusion.Grouping.TableEventArgs e)
{
this.gridGroupingControl1.Table.ExpandAllGroups();
}


Let me know if it helps,

Regards,
Lingaraj S.




AD Administrator Syncfusion Team April 14, 2009 04:35 PM UTC

Thanks. It worked.

>Hi Ramesh,

Thank you for your interest in Syncfusion product.

In GridGroupingControl, the CategorizedRecords event is fired when the grouped columns added. If you want expand the group when dropped the column in GroupDropArea. please try using ExpandAllGroups() method in CategorizedRecords event.

Please refer the code below:

this.gridGroupingControl1.Table.CategorizedRecords += new Syncfusion.Grouping.TableEventHandler(Table_CategorizedRecords);
void Table_CategorizedRecords(object sender, Syncfusion.Grouping.TableEventArgs e)
{
this.gridGroupingControl1.Table.ExpandAllGroups();
}


Let me know if it helps,

Regards,
Lingaraj S.





Loader.
Live Chat Icon For mobile
Up arrow icon