Link to home
Start Free TrialLog in
Avatar of especht
especht

asked on

Count rows in a datagrid

How can I count the # of rows in a datagrid?

Thanks,
especht
Avatar of Éric Moreau
Éric Moreau
Flag of Canada image

Use the ApproxCount property.
Avatar of especht
especht

ASKER

emoreau,

I tried that and got the following error:

Run-time error '7005':

Rowset not available.

Any thoughts or ideas?

Thanks,
especht
Is your datagrid bound, or unbound?
Avatar of especht

ASKER

The datagrid is bound.
ASKER CERTIFIED SOLUTION
Avatar of jrspano
jrspano
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of especht

ASKER

Answer accepted
Avatar of especht

ASKER

Thanks for everyone's input.