Hi, I need to access columns of infragistics ultragrid in same sequence in which they are being displayed in grid. If i can get the index of column in same sequence as they are visible on grid, i can fix my issues. Thanks in advance. Lalit
Hello , You can look at this tread, here is a information how to access the visible position of the columns:http://forums.infragistics.com/forums/p/25572/93767.aspx#93767I hope this helps.Sincerely,Dimitrina GinevaDeveloper Support EngineerInfragistics, Inc.
It's rather complicated to try to do this using VisiblePosition. Here's a better way:
UltraGridColumn column = this.ultraGrid1.DisplayLayout.Bands[0].GetFirstVisibleCol(this.ultraGrid1.ActiveColScrollRegion, true); while (column != null) { Debug.WriteLine(column.Header.Caption); column = column.GetRelatedVisibleColumn(VisibleRelation.Next); }
You can get this value from the .Header.VisiblePosition property from the column object. This controls the order that columns are displayed in the grid.