ASPxGridView 自带的删除事件不执行怎么回事??
直接上代码
<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False"
DataSourceID="SqlDataSource1" KeyFieldName="seqno" AllowSorting="True" OnRowDeleting="ASPxGridView1_RowDeleting"
OnRowUpdating="ASPxGridView1_RowUpdating">
protected void ASPxGridView1_RowDeleting(object sender, ASPxDataDeletingEventArgs e)
{
e.Cancel = true;
ASPxLabel7.Text = "删除";//"count: " + b.ToString();
//ASPxGridView1.CancelEdit();
//e.Cancel = true;
}
ASPxGridView1.GridView.RowDeleting += new DevExpress.Web.Data.ASPxDataDeletingEventHandler(GridView_RowDeleting);
void GridView_RowDeleting(object sender, ASPxDataDeletingEventArgs e)
{
e.Cancel = true;
ASPxLabel7.Text = "删除";//"count: " + b.ToString();
//ASPxGridView1.CancelEdit();
//e.Cancel = true;
}
ASPxGridView1.GridView.RowDeleted += new DevExpress.Web.Data.ASPxDataDeletedEventHandler(GridView_RowDeleted);
void GridView_RowDeleted(object sender, DevExpress.Web.Data.ASPxDataDeletedEventArgs e)
{
ASPxLabel7.Text = "删除";//"count: " + b.ToString();
}