Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting records of a subquery result 1

Status
Not open for further replies.

ayanroy

Programmer
Oct 20, 2002
22
EU
Hi all,

I have a search query which joins two tables to return a set of records. I am displaying the records in a Paged DataGrid . I want to show the total number of records returned in that query.

I am using DataGrid.Items.Count , but that is returning the no. of records in the current page.

Please help me out..



Ayan Kumar Roy
India
 
Don't you bind this somewhere in your code? Go to that spot and get the rows count.
Options:

table1.rows.count
dtagrid1.datasource=table1

dataview1.table.rows.count
dtagrid1.datasource=dataview1

Or

ctype(DataGrid.DataSource,datatable).rows.count
ctype(DataGrid.DataSource,dataview).table.rows.count
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top