Hi,
I have a problem counting the filtered rows, e.g. I have 50 rows in the grid's DataSource table but after applying a filter, only 10 rows are shown in the grid, so what I want to count is just these 10 row (version 2011.2.11.712).
The problem has come up already in this forum and I tried the following:
1.grid.Items.ItemCount: results in error as the grid does not have the property Items.
2.grid.MasterTemplate.ChildRows.Count: always returns just 1
3. looping through grid.Rows and checking the IsVisible property or each row: is true for all 50 rows
4. comparing the underlying table rows with grid.Rows[i].DataBoundItem as described in another thread here: does not do the trick either.
What am I missing here? Hope you can help me with this, thanks a lot in advance
I have a problem counting the filtered rows, e.g. I have 50 rows in the grid's DataSource table but after applying a filter, only 10 rows are shown in the grid, so what I want to count is just these 10 row (version 2011.2.11.712).
The problem has come up already in this forum and I tried the following:
1.grid.Items.ItemCount: results in error as the grid does not have the property Items.
2.grid.MasterTemplate.ChildRows.Count: always returns just 1
3. looping through grid.Rows and checking the IsVisible property or each row: is true for all 50 rows
4. comparing the underlying table rows with grid.Rows[i].DataBoundItem as described in another thread here: does not do the trick either.
What am I missing here? Hope you can help me with this, thanks a lot in advance