private void moveToLivingsButton_Click(object sender, EventArgs e) { dataGridView2.DataSource = RequestsSQLT.SelectAllFromLivingByCustomerId(conn, idOfChosenRow1); ElementsSettings.SetDefaultSettingsToDGV(dataGridView2); ElementsSettings.HideFirstXColumns(dataGridView2, 2); ElementsSettings.HideLastXColumns(dataGridView2, 2); tabControl1.SelectedIndex = 1; }
public void Refresh3() { OpenConnectionCorrect(conn); dataGridView3.DataSource = RequestsSQLT.SelectAllFromBooking(conn); ElementsSettings.SetDefaultSettingsToDGV(dataGridView3); ElementsSettings.HideFirstXColumns(dataGridView3, 2); ElementsSettings.HideLastXColumns(dataGridView3, 2); ElementsSettings.RenameLivingOrBookingDGV(dataGridView3); }