• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 401
  • Last Modified:

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?
0
brassmonkeyboy
Asked:
brassmonkeyboy
1 Solution
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
you mean the number of fields?

DS.Tables(0).Rows(0).Fields.Count
0
 
appariCommented:

its

DS.Tables(0).columns.count

0
 
brassmonkeyboyAuthor Commented:
Appari, that works wonderfully.

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

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now