摘要: 再增加一个删除按钮要做以下工作:1.将两个删除按钮列改为模板列2.将两个删除按钮的CommandName的属性设置为Delete3.将两个删除按钮的CommandArgument属性分别设置为"0"和"1",这是区分这两个按钮的关键!!4.在GridView的RowCommand事件下打入代码,(RowCommand事件先于RowDeleting事件) protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { if(e.CommandName==&qu 阅读全文
posted @ 2012-10-25 09:02 sirili 阅读(312) 评论(0) 推荐(0) 编辑