gridview 删除全选
--------------------编程问答-------------------- foreach (GridViewRow row in GridView1.Rows){
cbx =(CheckBox)row.Cells[8].FindControl("cbxId");
if (cbx.Checked)
{
ids += ((HiddenField)(row.FindControl("HiddenField1"))).Value + ",";
}
}
if(ids.EndWiths(",")
ids = ids.Substring(0, ids.Length - 1);
if(!IsPostBack)绑定数据
或
foreach (GridViewRow gr in this.Gridview1.Rows)
{
if (((CheckBox)gr.FindControl("CheckBox1")).Checked)
{}
}
--------------------编程问答--------------------
补充:.NET技术 , ASP.NET