Hi All, I am Very New in Infragistics win Controls. How get the columns index same as display in Grid LayOut,
Even if some columns are hidden in between. Suppose i have 20 columns in Grid, and 5 to 15 columns visible false, so 16th columns position in Grid is 6. and i want to get 16th column index 6, How it is posible?
But what about if the rowLayoutStyle is set to GroupLayout, in that case that's not true.
The best way to do this is to reference the column by Key. The Index of the column can change, but the Key will always be the same.
The VisiblePosition property on the ColumnHeader object held by the UltragridColumn.
int visibleIndex = Grid.DisplayLayout.Bands[0].Columns["MyCol"].Header.VisiblePosition;
One could set the visible position of the column like follows
Grid.DisplayLayout.Bands[0].Columns["YourColumn"].Header.VisiblePosition = 10;