示例#1
0
 public void Rental_Load()
 {
     DGV_Rental.DataSource = null;
     try
     {
         DGV_Rental.DataSource = Obj_Data.FillRental_Data();
         DGV_Rental.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
示例#2
0
 private void button_rentalout_Click(object sender, EventArgs e)
 {
     DGV_Rental.DataSource = null;
     try
     {
         DGV_Rental.DataSource = Obj_Data.RentedOut_Data();
         DGV_Rental.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }