New Product Launch - BoldDesk !
Introducing help desk ticketing software.
New Product LaunchBoldDesk: Help desk ticketing software starts at $10 for 3 agents.
Try it for free.//subscribe to the event this.gridGroupingControl1.TableDescriptor.GroupedColumns.Changed += new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changed); //used to track where/what column needs to be shown/hidden private Hashtable saveLocation = new Hashtable(); private Hashtable saveColumn = new Hashtable(); //the handler private void GroupedColumns_Changed(object sender, ListPropertyChangedEventArgs e) { SortColumnDescriptor col = e.Item as SortColumnDescriptor; int i = this.gridGroupingControl1.TableDescriptor.VisibleColumns.IndexOf(col.Name); if(i > -1) { saveLocation.Add(col.Name, i); saveColumn.Add(col.Name, this.gridGroupingControl1.TableDescriptor.VisibleColumns[i]); this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove(col.Name); } else { i = (int) saveLocation[col.Name]; saveLocation.Remove(col.Name); GridVisibleColumnDescriptor vcol = saveColumn[col.Name] as GridVisibleColumnDescriptor; saveColumn.Remove(col.Name); this.gridGroupingControl1.TableDescriptor.VisibleColumns.Insert(i, vcol); } }