PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

count records in dataset...

 
 
John Pether (john@
Guest
Posts: n/a
 
      24th Jul 2003
I have the following code which loads a dataset into a datagrid:
<code>
' Obtain Link information from Links table
' and bind to the datagrid control

Dim links As New DNSite.LinksIndexDB()

' DataBind Links to DataGrid Control

DG.DataSource = links.GetLinks(CatID)
DG.DataBind()
DLLegend.DataSource = links.GetGroups
DLLegend.DataBind()
TotalLinks =
</code>

TotalLinks needs to be the number of rows of data from the dataset links.GetLinks

Can anyone tell me how I access that info?

thx


**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
 
Reply With Quote
 
 
 
 
Rajesh Tiwari
Guest
Posts: n/a
 
      24th Jul 2003
records in a dataset are nothing but the records in the data tables in the
dataset.so to get the records in a dataset ,get the recordcount in the
table/tables in the dataset.and the command for this is somewhat like
dataset.tables[0].rows.count

--
Rajesh Tiwari


"John Pether" <john@<nospam>dotnetsites.net> wrote in message
news:#(E-Mail Removed)...
> I have the following code which loads a dataset into a datagrid:
> <code>
> ' Obtain Link information from Links table
> ' and bind to the datagrid control
>
> Dim links As New DNSite.LinksIndexDB()
>
> ' DataBind Links to DataGrid Control
>
> DG.DataSource = links.GetLinks(CatID)
> DG.DataBind()
> DLLegend.DataSource = links.GetGroups
> DLLegend.DataBind()
> TotalLinks =
> </code>
>
> TotalLinks needs to be the number of rows of data from the dataset

links.GetLinks
>
> Can anyone tell me how I access that info?
>
> thx
>
>
> **********************************************************************
> Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
> Comprehensive, categorised, searchable collection of links to ASP &

ASP.NET resources...


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
How to count records using count(*) in a chart report FL Microsoft Access Reports 3 3rd Dec 2009 03:51 PM
RE: How to count records using count(*) in a chart report FL Microsoft Access Reports 3 1st Dec 2009 11:31 PM
enter a count function to count records? Kimberly Microsoft Access Queries 11 14th May 2008 07:39 AM
How to overwrite db records with records from dataset/table? sherifffruitfly Microsoft ADO .NET 6 11th Feb 2007 05:33 PM
Copy a dataset to a new dataset with new records Ritesh Jain via DotNetMonster.com Microsoft ADO .NET 6 21st Jan 2005 08:10 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:33 PM.