Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to iterate gridview...so that i have to store data in database using dynamical gridview...plz help me
Posted

C#
ForEach(GridViewRow row in YourGridView.Rows)
{
   //do what ever you want here e.g TextBox txt =   (TextBox)row.Findcontrol("TextBox1")

}
 
Share this answer
 
v2
Comments
RaviRanjanKr 14-Dec-11 3:57am    
My 5+
As Khumza sugggestd you the way of Iteration you will find exactly practical influence from this article-[Accessing the different controls inside a GridView control][^]. it might help you
 
Share this answer
 

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