Click here to Skip to main content
12,295,791 members (28,477 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: VB ASP.NET VB.NET
hi

page_load
.........

All of the controls are creating textboxes and labels comes with sql db.

my problem is in my table 10 records is their.

but everytime i run the app. by using for loop to get data for all records like this for int i=0;i<=ds.tables[0].rows.count-1;i++){

----code-----
}

only 1st record is taken.

remaining records are not taken.
Posted 15-Nov-12 22:22pm
Comments
Nelek 16-Nov-12 4:30am
   
Are you sure that ds.tables[0].rows.count-1 is giving you the correct result?
dominicthoppil 16-Nov-12 5:35am
   
Hi
Can you write the following code before the starting of for loop.
int iTblCount = ds.tables.Count;
int iRowCount = ds.tables[0].rows.count;

and please let us know the result

Regards
Dominic
Mathlab 16-Nov-12 8:51am
   
how are you positioning the controls?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160525.2 | Last Updated 16 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100