Eventhandler when dropping a column into GridGroupDropArea

Hi,

I would like to handle an event when I drop a column from a table in GridGroupingControl into GridGroupDropArea.

Basically, I will be highlighting some cells in the tables when the data is initially loading, and when a table is group by dropping a column, I want to handle the event and clean up the highlighting in the table.

Could you let me know if how I can do this?

Thanks,
Gerald





1_7edfc6e7.JPG

3 Replies

RC Rajadurai C Syncfusion Team June 2, 2009 03:17 PM UTC

Hi Gerald,

Thanks for your interest in Syncfusion Products.

It seems you had posted an incident with the similar inquiry in Direct Trac with id #56523 which has been updated with solution. Please followup with that(incident:#56523).

Regards,
Rajadurai


JK Jeff King April 13, 2010 08:48 AM UTC

Can you please post the answer to this in a public forum?

Thankyou.


JJ Jisha Joy Syncfusion Team April 13, 2010 12:13 PM UTC

Hi Jeff,

In gridgroupingcontrol, while dropping the column in the groupdroparea, two events of groupedcolumns can be handled.

this.gridGroupingControl1.TableDescriptor.GroupedColumns.Changing += new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changing);
this.gridGroupingControl1.TableDescriptor.GroupedColumns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changed);

Changing- This event get triggerred while the column adding/removing is in progress in groupdroparea
Changed - This event get triggerred after the column is dropped to/from groupdroparea.

Changing event get triggered before Changed event.

Through the following code, you can find out which column is dropped and the type of action(adding/removing).

Console.WriteLine(e.Item + " " + e.Action);


Please refer to the following minimal sample in which this has been implemented.
http://files.syncfusion.com/support/samples/Grid.Windows/6.3.0.6/I56523.zip

Jisha

Loader.
Up arrow icon