Click here to Skip to main content
15,899,754 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using gridview. using command field, i put 2 control one is edit and one is delete. if i click on edit button the row data should display in another table on same page. i am not able to find control using command field. Here i can't use item template because gridview data and columns are dynamically created. using command field edit button, how can i display data in another table on same page.

ur solution make me much help. Please can any one give me idea how can i do this.
Posted
Updated 6-Nov-12 10:08am
v2
Comments
Sandeep Mewara 6-Nov-12 17:07pm    
Better to share your related code snippet you tried - it will make things clear on what are you trying to do and what is happening.
sailaja reddy 2 6-Nov-12 22:11pm    
Hello Sandeep.Thank you very for ur response.I got solution.
Thanku very much once again

you can find your grid view row using below code.
Then find your control.
GridViewRow gvr = (GridViewRow)(((ImageButton)e.CommandSource).NamingContainer);
 
Share this answer
 
Comments
sailaja reddy 2 7-Nov-12 10:59am    
Thanku very much for the time u spend for me.It might be correc solution i dont know exactly.I tried it in another way.Iam useing autogenerateselect button and on select index changing iam writing hot code to generate dynamic table and from that iam getting textbox values.Thanku very much once again gajendra.
Thanku very much for the time u spend for me.It might be correc solution i dont know exactly.I tried it in another way.Iam useing autogenerateselect button and on select index changing iam writing hot code to generate dynamic table and from that iam getting textbox values
 
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