Click here to Skip to main content
15,938,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in my project when i click on gridview to edit row , i have written rowediting event
but it not invoking in but in every thing works fine and also when click on events of gridview in properties in designer source view event name is not displaying but back end server side event is showing this is happeing in only , c# is fine. can u tell me solution?

<asp:GridView ID="gdGroups" runat="server"  AutoGenerateColumns ="false"  onrowdeleting="gdGroups_RowDeleting" 
            onrowdatabound="gdGroups_RowDataBound" onrowediting="gdGroups_RowEditing" 
            onrowupdating="gdGroups_RowUpdating" onpageindexchanging="gdGroups_PageIndexChanging"   >
       <asp:BoundField DataField="sno"  Visible ="false"   />
       <asp:BoundField DataField="gname" HeaderText="Group Name" />
         <asp:BoundField DataField="status" HeaderText="Status" />
          <asp:BoundField DataField="gdt" DataFormatString="{0:dd-MMM-yyyy}" 
             HeaderText="Create Date" />
              <asp:TemplateField HeaderText="Edit/Update">
                                    <asp:ImageButton ID="Image2" runat="server" ImageUrl="~/Images/icon-floppy.gif" CommandName="edit" />
                                    <asp:ImageButton ID="Image1" runat="server" ImageUrl="~/Images/icon-pencil.gif" CommandName="update" />
                            <asp:TemplateField HeaderText="Delete">
                                    <asp:ImageButton ID="Image3" runat="server" ImageUrl="~/Images/icon-delete.gif" CommandName="delete" />
Updated 25-Sep-11 6:29am
Parwej Ahamad 25-Sep-11 5:37am    
Post here your code part too (HTML & Event)
Shahriar Iqbal Chowdhury/Galib 25-Sep-11 16:46pm    
are you using same code for VB.NET and C#.NET?
Srinivas Kumar Pasumarthi 26-Sep-11 8:59am    
yes,the will works for perfectly

not working in

when click on events of gridview on properties window it will not writing on source code
manually iam writing events to gridview but still events r not raising

1 solution

Make sure you have set the Run at tag to server.
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