Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
Nelek 16-Nov-12 4:30am    
Are you sure that ds.tables[0].rows.count-1 is giving you the correct result?
Dominic Abraham 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
[no name] 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900