Protected Sub GridView1_RowCreated(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles GridView1.RowCreated
If e.Row.RowType = DataControlRowType.DataRow Then
Dim mybutton As LinkButton = CType(e.Row.FindControl("linkbutton4"), LinkButton)
mybutton.OnClientClick = "return confirm('是否确认删除当前选择的记录')"
End If
End Sub
锁定编辑操作尚未保存