protected void gv_Group_RowDataBound(object sender, GridViewRowEventArgs e)
    {
        if (e.Row.RowType == DataControlRowType.DataRow)
        {
            e.Row.Cells[e.Row.Cells.Count - 1].Attributes.Add("onclick", "return confirm('确定删除 [ " + DataBinder.Eval(e.Row.DataItem,"GroupName") +" ] 吗?')");
        }
    }

为GridView删除添加提示(转载)

相关文章:

  • 2021-06-08
  • 2021-05-18
  • 2021-12-09
  • 2022-12-23
  • 2022-01-23
  • 2021-06-09
  • 2022-12-23
猜你喜欢
  • 2022-02-06
  • 2021-11-02
  • 2021-12-31
  • 2021-10-18
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案