Paging in ADO.net 2.0 - row count in filtered dataset

G

Guest

I am usign paging in a gird with a Dataset as the DataSource for a grid. I
also apply a Filter expression to the dataset but when I dispaly the Rowcound
or check "AffectedRows" I get the original Row count before I apply the
filter.

How can I get the actual rowcount of the filtered dataset.

I could set up a temp data set to clone against the filtered initial dataset
to get the new row count but that seems like a hack?
Is there a better way to get the filtered row count.

Jawahar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top