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
17259
Showing the rows count
posted

Hi,

I want to show the user how many rows there are in the first band excluding the template row and the flter row. Which property will give me the exact number?

In addition, I want to show "X rows out of Y" when a filter is applied and only X rows are being shown.

What is the event that I should listen to in order to know when the rows count has been changed?

Thanks

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

     

    jct said:
    I want to show the user how many rows there are in the first band excluding the template row and the flter row. Which property will give me the exact number?

    grid.Rows.Count

    jct said:
    In addition, I want to show "X rows out of Y" when a filter is applied and only X rows are being shown.

    grid.Rows.FilteredInRowCount

    jct said:
    What is the event that I should listen to in order to know when the rows count has been changed?

    This is a little tricky. By default, the grid does the filtering lazily. Try using the AfterRowFilterChanged event. If you find that the numbers you are getting in this event are not correct, then it must be because the filters have changed, but the rows haven't actually been filtered yet. If that's the case, then you will need to force the filtering to be performed synchronously. To do that, you have the BeforeRowFilterChanged event and set e.ProcessMode to Synchronous

Children