Hi Vijay,
If you want to remove a column from the VisiblColumns collection, when the column is dragged to the griddroparea, then try the code below in the TableDescriptor.GroupedColumns.Changing event handler. This will help in hiding the column when its dragged to the dragdroparea and reshow it again once its being detached from group.
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.Insert)
{
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Remove(scd.Name);
}
}
Please try the attached sample that demontrates this.
Here is a sample
GGC_GroupColumns.zipLet us know if this is not what you needed.
Regards,
Rajagopal