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
1800
How to get wingrid visible columns
posted

Hi,

I'm wondering how to get all the visible columns in ultrawingrid. I have a wingrid with 80 odd columns of which i display only 10. Is there a way to get only the visible columns? I'm looping through all the columns to check for values, but there is a performance hit in doing so as i'm sure i have to loop through only visible columns.

Any help is appreciated..

 

  • 469350
    Suggested Answer
    Offline posted

    Actually, there are several ways to get the visible columns in the grid. I answered the same question here.

  • 69832
    Suggested Answer
    Offline posted

    It doesn't look UltraGrid exposes a property that returns the visible columns. You could roll your own support for this, however, by iterating the ColumnsCollection, adding the visible ones to a list, and then tracking changes to the column's Hidden property to know when you need to rebuild the list.