Click here to Skip to main content
15,911,139 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
We are using datagrid to display values in the web page.Paging for datagrid is enabled.Items per page is 10.I have 15 items in my datagrid.Now i want to loop through each row in the datagrid.When i try datagrid.items.count it returns 10.how do i get 15 and loop through all the items in the datagrid.

All helps are highly Appreciable !!
Posted

you use :
C#
GridView1.Rows.Count
 
Share this answer
 
hi apart from above solution you must be binding gridview with some source so you can count the records in that source it will be equivalent to your records in gridview
hope this will help you
thanks.
 
Share this answer
 
Comments
John Sathish Tamilarasu 28-Jun-12 0:20am    
This is we are already tried,but the expectation is we are having checkbox in each gridview row,we want ensure whether it is enabled or not.Any suggestion please.

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