Category / Section
How to move unbound column to first in WinForms GridGroupingControl?
1 min read
Unbound columns
By default, unbound columns will be generated at last position of GridGroupingControl whenever unbound columns are added. Any unbound column’s position can be changed to the specified index by using Move method of VisibleColumns collection.
C#
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Move(4, 0); //Here 4 is the index of unbound column and 0 is target column index
VB
Me.gridGroupingControl1.TableDescriptor.VisibleColumns.Move(4, 0) 'Here 4 is the index of unbound column and 0 is target column index
Samples:
Reference link: https://help.syncfusion.com/windowsforms/classic/gridgroupingcontrol/managing-records-and-columns#unbound-columns