private void btnAnular_Click(object sender, EventArgs e) { if (dgvReservas.Rows.Count > 0) { foreach (DataGridViewRow row in dgvReservas.Rows) { if (Convert.ToBoolean(row.Cells[colCheckbox.Name].Value) == true) { Reserva.AnularReserva(int.Parse(row.Cells[colIDReserva.Name].Value.ToString())); } } CargarReservas(); } }