Asp.net 从GridView中删除行后如何执行命令
我试图处理Asp.net 从GridView中删除行后如何执行命令,asp.net,vb.net,Asp.net,Vb.net,我试图处理RowCommand。但它是在删除之前执行的 Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand if e.CommandName = "delete" 'do something here
RowCommand
。但它是在删除之前执行的
Protected Sub GridView1_RowCommand(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewCommandEventArgs) Handles GridView1.RowCommand
if e.CommandName = "delete"
'do something here
End If
End Sub
您可以创建自己的命令,然后根据需要对操作进行排序。看看这个: