Пример #1
0
 //行事件
 protected void Grid1_RowCommand(object sender, FineUI.GridCommandEventArgs e)
 {
     if (e.CommandName == "Delete")
     {
         string id   = Grid1.Rows[e.RowIndex].Values[0].ToString();
         int    flag = operate.DeleteCommentByID(id);
         if (flag >= 1)
         {
             Alert.ShowInParent("删除成功");
             BindData();
         }
         else
         {
             Alert.ShowInParent("删除失败");
         }
     }
 }