Link to home
Create AccountLog in
Avatar of brassmonkeyboy
brassmonkeyboy

asked on

How to count items in Dataset?

I have a dataset in which I need to count the number of items.  I know you can count ROWS with the following:

DS.Tables(0).Rows.Count

But I need to count the number of items WITHIN the row.  How do I do this?
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

you mean the number of fields?

DS.Tables(0).Rows(0).Fields.Count
ASKER CERTIFIED SOLUTION
Avatar of appari
appari
Flag of India image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of brassmonkeyboy
brassmonkeyboy

ASKER

Appari, that works wonderfully.

Angel, I'm sorry man, but that doesn't work...