private void btnShowBookingsByDate_Click(object sender, EventArgs e) { try { gvBookings.DataSource = CC.GetBookingsByDate(dtpDate.Value.Date); } catch (Exception) { MessageBox.Show("Connection error"); } }