//行事件 protected void Grid1_RowCommand(object sender, FineUI.GridCommandEventArgs e) { if (e.CommandName == "Delete") { int id = Convert.ToInt32(Grid1.Rows[e.RowIndex].Values[0]); int flag = operate.DeleteMessageByID(id); if (flag >= 1) { Alert.ShowInParent("删除成功"); BindData(); } else { Alert.ShowInParent("删除失败"); } } }