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
995
Visible Rows collection
posted

I see a visibleindex property of the row object, but for the life of me I cannot find the visibleindex collection.  I have a grid with a huge dataset and when filtered, I want to loop through just the filtered visible rows rather than looping through thousands of rows hidden.

Alternatively, is there  a way to just obtain the collection of filtered rows?

 

Parents
  • 469350
    Verified Answer
    Offline posted

    Hi,

    I'm pretty sure VisibleIndex refers to the rows on-screen, not necessarily all of the rows that are not filtered out or hidden.

    What you can do is get an enumerator from the Rows collection which skips hidden rows. There are a bunch of these with various options that you can access from the Rows collection. Like so:

    foreach (UltraGridRow row in this.ultraGrid1.Rows.GetFilteredInNonGroupByRows())
    {

    }

Reply Children
No Data