Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all,
i wanna loop through all the rows in the gridview and i am using this code...
foreach (GridViewRow row in GVDealsException.Rows)

i have paging set to true...however this statement gives me the rows only available in one particular page not all

please help..its urgent
Posted

1 solution

Retrieve rows from the datasource i.e. datatable used for binding.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 27-Jan-12 1:14am    
Could be a good idea, but we are not sure if such database exists; OP did not mention it; all data could be in the control itself.
--SA
Supriya Srivastav 27-Jan-12 1:52am    
Ya,SA that can be a issue.
Member 8459400 27-Jan-12 2:15am    
i have the database givivng me the data
Supriya Srivastav 27-Jan-12 3:22am    
@Member 8459400 Then you can access the data from datatable.

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