still trying to get a good recordcount

G

George Hardy

hello again...

i have a dataset that gets displayed in a grid. I also have
the grid attached to a dataview, so i can set the rowfilter and easily
filter it.

However, when asking for the dataview1.table.rows.count, it
gives me the count of the entire dataset, not what is filtered.

Why doesn't the grid have a property for row count? It has visible row
count.

How do you determine the total number of rows on a dataview that has been
filtered?

thanks in advance
gh
 
G

Greg Burns

George Hardy said:
How do you determine the total number of rows on a dataview that has been
filtered?

dataview1.table is the underlying table of your dataview
Hence, when you do dataview1.table.rows.count you are gettings the count of
rows on the underlying table (not the dataview)

What you really want is simply

Dim i as integer = dataview1.count

Greg
 
G

George Hardy

thanks! of course it had to be simple.

i really appreciate your response.

geroge hardy
 

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