count records in dataset...

J

John Pether (john@

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...
 
R

Rajesh Tiwari

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 said:
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

count rows in dataset... 3
filter dataset?? 3
grid scroll 2
another obj ref error/ need help here 5
Dataset code...is this correct? 2
sorting DataGrid 1
using DataSet and DataView 3
comparing two lists 2

Top