Click here to Skip to main content
15,942,934 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Tell me how to handle gridview events such as Row_Editing,Row_Deleting in ajax updatepanel trigger.

My code is

<asp:ScriptManager ID="ScriptManager1" runat="server"/>

<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">

here is my gridview

<triggers> <asp:AsyncPostBackTrigger ControlID="gv" EventName="RowEditing" />

but when I clicked on edit button which is in gridview this event does not handle .

So please give me solution

1 solution

pls try to this

you have to edit button id put to the control id

for example control id="edit"

          <asp:PostBackTrigger ControlID="btnSubmit" />
          <asp:PostBackTrigger ControlID="btnUpdate" />

Share this answer
Ajay Shedge 8-Jan-15 0:58am    
Hello friend,

but this edit button present in gridview <edititemtemplate> that's why this event can't goes to click event when I clicked on edit button

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