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

Disable Grouping with certain columns

I have 3 columns in GGC.Grouping can be done by first 2 column.I have to restrict choosing 3rd column for grouping.ie.,
Product,Group,Member are the three columns.
grouping should be allowed by both product and group.but disable grouping by member.
how can it be done?


1 Reply

JJ Jisha Joy Syncfusion Team December 19, 2008 10:18 AM UTC

Hi Aditi ,

This can be achieved by handling TableControlQueryAllowDragColumn event. You can check for the e.Column for column name and set e.AllowDrag property to false.

See the code:

this.gridGroupingControl1.TableControlQueryAllowDragColumn += new GridQueryAllowDragColumnEventHandler(gridGroupingControl1_TableControlQueryAllowDragColumn);


void gridGroupingControl1_TableControlQueryAllowDragColumn(object sender, GridQueryAllowDragColumnEventArgs e)
{
if (e.Column == "Member")
{
e.AllowDrag = false;
}


}

Regards,
Jisha


Loader.
Live Chat Icon For mobile
Up arrow icon