110,535
社区成员
发帖
与我相关
我的任务
分享
protected void Button1_Click(object sender, EventArgs e)
{
//批量删除
int intCount = this.GridView1.Rows.Count;
for (int i = 0; i < intCount; i++)
{
CheckBox CheckSingle = this.GridView1.Rows[i].Cells[0].FindControl("CheckSingle") as CheckBox;
if (CheckSingle.Checked)
{
int CardID = Convert.ToInt32(this.GridView1.Rows[i].Cells[1].Text);
Card Cardinfo = new Card();
Cardinfo.CID = CardID;
Card.DeleteCard(Cardinfo);
}
}
BindList();
this.GridView1.DataBind();
//this.GridView1.DataBind();
//GridView1.PageIndex = -1;
}