Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
45
Trying to retrieve the UltraGridColumn or ColumnHeader Object by VisiblePosition
posted

Is there a way to retrieve a column by it's visible position? Rows can be accessed by index (visible position) or by listindex (data position). I can only find a way to access columns by data position.

  • 469350
    Verified Answer
    Offline posted

    There are a couple of ways you can do this. One way is to use the VisibleHeaders collection on the ColScrollRegion:

    this.ultraGrid1.ActiveColScrollRegion.VisibleHeaders[1].Header.Column

    If you want to loop through the columns in the visible order, then I would recommend using the GetFirstVisibleCol method on the band and then the GetRelatedVisibleColumn method on the column.