Home Forums WinForms controls Xceed Grid for WinForms VisibleIndex Reply To: VisibleIndex

User (Old forums)
Post count: 23064

You could try this:
1. Find the minimum and maximum VisibleIndex of all the columns.
2. Create a loop from minimum to maximum, and get the columns like this:
Xceed.Grid.Column[] columns = new Xceed.Grid.Column[grid.Columns.Count];
int counter = 0;
for(int i=minimum; i<=maximum; i++)
column[counter] = grid.Columns.GetColumnAtVisibleIndex(i);

Imported from legacy forums. Posted by Tommy (had 3079 views)