Click here to Skip to main content
15,885,767 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am not find gridview control when it is creates on a button click event, when I click other button.
Posted
Updated 22-Jun-11 21:43pm
v2
Comments
[no name] 22-Jun-11 9:50am    
please explain ur problem so that can help you
Shahriar Iqbal Chowdhury/Galib 22-Jun-11 16:51pm    
share your code and the exception/error you see
Dalek Dave 23-Jun-11 3:43am    
Edited but it is still an unclear question.

Hi,

You want to all row save in database


on button event
for(int i=0;i<gv1.rows.count;i++)>
{
  string name=((Textbox)gv.rows[i].findcontrol("GV_textbox1")).Text;
}


You got Value of textbox in render in gridview
 
Share this answer
 
v3
Comments
Dalek Dave 23-Jun-11 3:45am    
Edited for code block, and the word is You, not U.
We are not prepubescent txtspk using morons.
jindi123 23-Jun-11 4:06am    
Actually what u did explain me
In an event, such as onclick, the sender property is the control that generated it. So, your gridview is there. Your controls should be given names, and unless your gridview is in a column of another data bound control, you should also be able to access it by name directly.
 
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