private void GroupedColumns_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e) { SortColumnDescriptor scd = e.Item as SortColumnDescriptor; if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Remove) this.gridGroupingControl1.TableDescriptor.VisibleColumns.Add(scd.Name); else if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Add) this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove(scd.Name); }
>private void GroupedColumns_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e) >{ > SortColumnDescriptor scd = e.Item as SortColumnDescriptor; > if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Remove) > this.gridGroupingControl1.TableDescriptor.VisibleColumns.Add(scd.Name); > else if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Add) > this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove(scd.Name); >} >>
>private void GroupedColumns_Changing(object sender, Syncfusion.Collections.ListPropertyChangedEventArgs e) >{ > SortColumnDescriptor scd = e.Item as SortColumnDescriptor; > if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Remove) > this.gridGroupingControl1.TableDescriptor.VisibleColumns.Add(scd.Name); > else if(e.Action == Syncfusion.Collections.ListPropertyChangedType.Add) > this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove(scd.Name); >} >>
gdBase.DataSource = mGridDataSet.Tables[table];
this.gdBase.TableDescriptor.GroupedColumns.Changing += new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changing);
You will also have to find a good spot to unsubscribe to it as you do not want multiple handlers hooked.
>gdBase.DataSource = mGridDataSet.Tables[table];
>this.gdBase.TableDescriptor.GroupedColumns.Changing += new Syncfusion.Collections.ListPropertyChangedEventHandler(GroupedColumns_Changing);
>
>
>You will also have to find a good spot to unsubscribe to it as you do not want multiple handlers hooked.