protected void bt_Delete_Click(object sender, EventArgs e) { foreach (GridViewRow row in gv_List.Rows) { CheckBox cbx = (CheckBox)row.FindControl("cbx"); if (cbx != null && cbx.Checked) { int id = (int)gv_List.DataKeys[row.RowIndex][0]; CM_RebateRule_ApplyCityBLL bll = new CM_RebateRule_ApplyCityBLL(id); bll.Delete(); } } BindGrid(); }