event column removed / moved

I would like to know which events to handle when I want to know if one column was removed from the grid (by dragging it out of grid area) or when columns change position (by dragging from one position to another).

1 Reply

SA Solai A L Syncfusion Team June 9, 2015 06:38 AM UTC

Hi Felipe,

Thank you for using Syncfusion products.

You can use VisibleColumns Changed/Changing events to handle when one column was removed from the grid/position changed. Please refer the below code snippet and KB’s and forum links for further clarification.

Code Snippet[c#]:

this.gridGroupingControl1.TableDescriptor.VisibleColumns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(VisibleColumns_Changed);

this.gridGroupingControl1.TableDescriptor.VisibleColumns.Changing += new Syncfusion.Collections.ListPropertyChangedEventHandler(VisibleColumns_Changing);


Reference links:
http://www.syncfusion.com/forums/51585/colsmoved-event-doesnt-fire-for-gridgroupingcontrol

http://www.syncfusion.com/forums/69246/gridgroupingcontrol-drag-and-drop

https://www.syncfusion.com/forums/94064/allow-user-to-drag-column-from-gridgroupingcontrol-to-remove-from-table

Please let us know if you have any other concerns.

Thanks & Regards,
AL.Solai


Loader.
Up arrow icon