1
<asp:TemplateField HeaderText="Modify">
<ItemTemplate>
<asp:Button ID="btnDelete" runat="server" Text="Delete"
CommandName="Delete"
CommandArgument='<%# ((GridViewRow)Container).RowIndex %>' >
</asp:Button>
</ItemTemplate>
</asp:TemplateField>
如果點擊刪除按鈕RowDeleting
事件被觸發。如何點擊刪除按鈕觸發RowCommand
事件我需要做什麼?如何在gridview中點擊按鈕時觸發RowCommand