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") +" ] 吗?')"); } } 相关文章: