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.
Unfortunately, activation email could not send to your email. Please try again.

Event for group drop area changed

Thread ID:

Created:

Updated:

Platform:

Replies:

71714 Feb 11,2008 04:54 AM Feb 12,2008 03:04 AM Windows Forms 3
loading
Tags: GridControl
John Ruiz
Asked On February 11, 2008 04:54 AM

I want to persist the last GGC configuration every time some one drags a column header or removes a column header from the group drop area. Could you please tell me the event i could subscribe to ???? Does GroupDropArea exposes one such event?

gridGroupingControl.TableControl.GroupDropArea. += OnMyFunction();


Thanks



haneefm [Syncfusion]
Replied On February 11, 2008 04:05 PM

Hi John,

GroupedColumns.Changing/GroupedColumns.Changed events fire when a group is added/removed from the GroupDropArea. You can make use of this event.

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);
}

Kindly let us know if you need any further assistance.

Best Regards,
Haneef


John Ruiz
Replied On February 11, 2008 08:20 PM

>Hi John,

GroupedColumns.Changing/GroupedColumns.Changed events fire when a group is added/removed from the GroupDropArea. You can make use of this event.

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);
}

Kindly let us know if you need any further assistance.

Best Regards,
Haneef



Thanks.
Though your product is rock solid and so is your support. I'd really like you guys doing some usability study on the APIs libraries. I don't have any major problems just that
gridGroupingControl has TableDescriptor, TableModel, TableOptions, TableControl and quite a lot of functionality is intermixed

For this problem of mine I was looking at gridGroupingControl.TableControl.GroupDropArea as it makes the most sense to have the events published here and not under gridGroupingControl.TableDescriptor.GroupedColumns.Changed

My 2 cents, please keep up with the good product.

Cheers


Fathima Shalini P [Syncfusion]
Replied On February 12, 2008 03:04 AM

Hi John,

Thank you for your update.

Regards,
Fathima


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;