Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Total records

Reply
Thread Tools

Total records

 
 
Paulo Roberto
Guest
Posts: n/a
 
      08-13-2007
Hi, how can I return the total of records returned from a DataSet? Because
if I use the grdview.row.count it will show just the page total... I would
like the whole...

How can I do that? or must I execute another sql statement: "count(*)"
instruction on db ?

Thanks a lot!


 
Reply With Quote
 
 
 
 
Alvin Bruney [MVP]
Guest
Posts: n/a
 
      08-13-2007
dataset1.table[0].Rows.Count should do the trick

--
Regards,
Alvin Bruney
------------------------------------------------------
Shameless author plug
Excel Services for .NET - MS Press
Professional VSTO 2005 - Wrox/Wiley
OWC Black Book www.lulu.com/owc

"Paulo Roberto" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, how can I return the total of records returned from a DataSet? Because
> if I use the grdview.row.count it will show just the page total... I would
> like the whole...
>
> How can I do that? or must I execute another sql statement: "count(*)"
> instruction on db ?
>
> Thanks a lot!
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GridView: Total Records Amelyan ASP .Net 9 10-24-2011 09:55 AM
BT Total Broadband vs BT Business Total John Y UK VOIP 2 02-02-2007 09:27 AM
ASP.NET: Repeater: Total no. of Records in Footer Sachin ASP .Net 2 03-05-2006 05:45 PM
How to get the total number of queried records? Quentin Huo ASP .Net 5 09-01-2004 10:53 PM
How to know total records selected? anand ASP .Net 4 06-17-2004 07:03 AM



Advertisments