471,354 Members | 2,237 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,354 software developers and data experts.

How to Count Items in a dataset?

I'm trying to do an item count of a datagrid but my problem is that the
datagrid is paged and I only get a count for the number of rows in one page
as oppose to the whole dataset which has been bound to it.

Is there some easy way to count the items in a dataset instead or another
way around this.

Cheers for any help anyone can give me.
Jul 21 '05 #1
3 4961
from memory

myDataSet.Table[0].Rows.Count
Jul 21 '05 #2
Stephen,

Please don't multipost. It is not any problem to do X posting in the dotnet
newsgroups. (Sending one message to more relevant newsgroups in one time)
Than we can benefit from each other answer. And is not everybody giving the
same answer.

I answered you in another newsgroup.

Thanks in advance.

Cor
Jul 21 '05 #3
Josh,

myDataSet.Table[0].Rows.Count


I had almost ansered this as well. And probably is this meant, however this
count the *rows* in the first table, not the *items* in all tables.

:-)

Cor
Jul 21 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Wayne Wengert | last post: by
5 posts views Thread by Michael Krzepkowski | last post: by
9 posts views Thread by Alpha | last post: by
6 posts views Thread by Tejpal Garhwal | last post: by
3 posts views Thread by Stephen | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.