Hi, I am using UltraGrid with GroupByRows. I want to show Total rows present in Datasource and Filtered rows count if it is filtered on any column.I am able to get filtered rows by using property grid.Rows.FilteredInNonGroupByRowCount . Is there any property like this? So I can get all row count present in Datasource.Thanks & Regards; Ganesh
Yes, that seems like that should work.
Ya its correct mike. I want total actual row count. Can we get that one?
Currently I am using
lTotalItems = ultraGrid.Rows.GetAllNonGroupByRows().Length;
which is giving me that but is it the right way?
I'm having a hard time understanding what you want. But it sounds like you want a FilteredOutNonGroupByRowCount. There is no such property. I think you would have to determine the total actual row count recursively and then subtract.
IGDrewS said:Not sure I understand what you mean. Does grid.Rows.FilteredInRowsCount work for you? grid.Rows only includes rows in the top level band so if your grid is multiband you will need to traverse the rows to get the count.
grid.Rows.FilteredInRowsCount will give filtered row count in top level band.I have 1 grid which is group by one column and below that I have two labels. If user filter some data then I want to show total NonGroupBy rows and FilteredInNonGroupBy rows. I am able to get Filtered rows by grid.Rows.FilteredInNonGroupByRowCount but not able to count of rows which visible and Hidden due to filter. So I want to count this. Is there any property to do this?