返回首页

在我的项目,当我点击GridView的编辑行,我写了rowediting事件
但它不是在vb.net中调用,但在C#。NET一切正常,并单击GridView的事件,在设计师源视图事件的名称属性时不显示,但后端的服务器端事件显示,这是在VB happeing。净只,C#是罚款。 u能告诉我解决办法?


<asp:GridView ID="gdGroups" runat="server"  AutoGenerateColumns ="false"  onrowdeleting="gdGroups_RowDeleting" 

            onrowdatabound="gdGroups_RowDataBound" onrowediting="gdGroups_RowEditing" 

            onrowupdating="gdGroups_RowUpdating" onpageindexchanging="gdGroups_PageIndexChanging"   >

            <columns>

       <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">

                                <edititemtemplate>

                                    <asp:ImageButton ID="Image2" runat="server" ImageUrl=" /Images/icon-floppy.gif" CommandName="edit" />

                                </edititemtemplate>

                                <itemtemplate>

                                    <asp:ImageButton ID="Image1" runat="server" ImageUrl=" /Images/icon-pencil.gif" CommandName="update" />

                                </itemtemplate>

                            

                            <asp:TemplateField HeaderText="Delete">

                                <itemtemplate>

                                    <asp:ImageButton ID="Image3" runat="server" ImageUrl=" /Images/icon-delete.gif" CommandName="delete" />

                                </itemtemplate>             

  </columns>

回答

评论会员: 时间:2
|