Articles in this section
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 the last position of the 
WinForms 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#

//Here 4 is the index of unbound column and 0 is target column index
this.gridGroupingControl1.TableDescriptor.VisibleColumns.Move(4, 0); 

VB

'Here 4 is the index of unbound column and 0 is target column index
Me.gridGroupingControl1.TableDescriptor.VisibleColumns.Move(4, 0)

Samples:

C#: UnboundColumnMoving_c#.

VB: UnboundColumnMoving_VB.

 

Reference Link: Unbound Columns

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please  to leave a comment
Access denied
Access denied