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
140
Ultragrid.Rows.VisibleRowCount
posted

Hi A,

I am using <Ultragrid.Rows.VisibleRowCount> variable to check the Visible row in an ultragrid. There are actually 1 Visible row i can see, but the <Ultragrid.Rows.VisibleRowCount> value of is coming as 2. When I am expanding the <Ultragrid.Rows>  properties the <VisibleRowCount> value is 1. And after collapsing the quickwatch the <Ultragrid.Rows.VisibleRowCount>  is also 1. But if I am executing without viewing it in the quickwatch then the <Ultragrid.Rows.VisibleRowCount> continious to be 2. Can any one help me in this issue plz....

Thanks in Advance

Parents
No Data
Reply
  • 469350
    Suggested Answer
    Offline posted

    It seems like the grid is not refreshing the VisibleRows list until it needs it.

    Try calling grid.Refresh before checking the count and see if that helps. If not, you can try grid.Rows.Refresh(ReloadData) and that might do it.

Children
No Data