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

GridGroupingControl Grouping programatically

How do I reproduce the effect of droping columns in the group drop area programatically. I''d like to start with a grid grouped right away ?

Thanks.

3 Replies

AD Administrator Syncfusion Team October 3, 2006 07:28 PM UTC

Hi George,

Please refer to following code snippet to have Grouped columns in the GridGroupingControl

//Form_Load Event
this.gridGroupingControl1.ShowGroupDropArea = true;
// Group by "Col1"
this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Col1", ListSortDirection.Ascending);

Also refer to our evaluation center for more information
http://www.syncfusion.com/support/evalcenter/default.aspx?cNode=5

Best regards,
Madhan


GT George Thomas October 3, 2006 08:08 PM UTC

Thank Madhan,

This gives a group on the col but doesn''t then
show each item like it does when you drag the col into the GroupDropArea.

I''m sure I''m missing something.

George.

>Hi George,

Please refer to following code snippet to have Grouped columns in the GridGroupingControl

//Form_Load Event
this.gridGroupingControl1.ShowGroupDropArea = true;
// Group by "Col1"
this.gridGroupingControl1.TableDescriptor.GroupedColumns.Add("Col1", ListSortDirection.Ascending);

Also refer to our evaluation center for more information
http://www.syncfusion.com/support/evalcenter/default.aspx?cNode=5

Best'>http://www.syncfusion.com/support/evalcenter/default.aspx?cNode=5''>http://www.syncfusion.com/support/evalcenter/default.aspx?cNode=5

Best regards,
Madhan


AD Administrator Syncfusion Team October 5, 2006 11:54 PM UTC

Hi George,

Thanks for being patience.

Please refer to the following sample which demonstrates the way to have Grouped columns programmatically. We are not certain on your requirement, is it possible for you to explain us more details on your requirement?

Sample : GGC_GroupDrop.zip

Best regards,
Madhan

Loader.
Live Chat Icon For mobile
Up arrow icon