Click here to Skip to main content
15,891,204 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a webform in which i have two panels.
One for insert the data(insert form) and in second panel i have gridview.
I took gridview in updatepanel. In gridview i have a button. On button click i want to send the row detail on panel 1 form. But i am not able to do so because click event is not fire of button.

So please tell me, How i do this.
Posted
Updated 11-Jan-11 0:52am
v2

You need to do event bubbling for this as child controls do not raise any events on its own & need to be bubbled to GridView their parent.To accomplish this, we need to create an event handler for the RowCommand event of GridView. In this event handler we first check the incoming CommandName value to determine which control's event is raised and then take appropriate custom action.This article will give more idea on raising rowcommand event

Check out the functionality of "Go" button in this article

Trick/Tip: Raise a GridView RowCommand event from a child DropDownList control using a Submit button[^]
 
Share this answer
 
I hope Answer of THIS[^] thread may help you a bit towards what you are actually missing.
 
Share this answer
 
Comments
neoyogi 11-Jan-11 8:25am    
sorry but this is not helpful for me
please send me another answer
I'd ideally like to keep my button within the header of the Grid View.Then only it is easy to fire.
 
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