GGC GridGroupDropArea events

Are there events raised when the user adds and removes a column from the GridGroupDropArea?

I would like to know what Group is being created or removed.

thanks,
Doug

2 Replies

AD Administrator Syncfusion Team December 20, 2006 04:42 AM UTC

Hi Doug,

Try handling the TableDescriptor.GroupedColumns.Changing event of the gridgroupingcontrol. This will help you.

private void GroupedColumns_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e)
{
SortColumnDescriptor scd = e.Item as SortColumnDescriptor;

if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Insert)
Console.WriteLine("Column Added - {0}", scd.Name);

if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Remove)
Console.WriteLine("Column Removed - {0}", scd.Name);
}

Best Regards,
Haneef


AD Administrator Syncfusion Team December 20, 2006 03:52 PM UTC

Excellent - thanks!

Doug

Loader.
Up arrow icon