Dream Will Come True
梦想从这里开始
删除命令所在的模板列:e.Row.Cells.Count - 1;"C"数据内容,可绑定其它值
 protected void GridView1_DataRowBound(object o, 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, "C") + " ] 吗?')");
            }
        }
posted on 2007-04-05 15:42  钻钻  阅读(1623)  评论(0)    收藏  举报