Ejemplo n.º 1
0
 public void load()
 {
     DGV_RentMovie.DataSource = null;
     try
     {
         string queryObj = "Select * from Movies";
         DGV_RentMovie.DataSource = Obj_Database.FillDGV(queryObj);
         DGV_RentMovie.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
Ejemplo n.º 2
0
 private void Btn_CustomerWithMostVideos_Click(object sender, EventArgs e)
 {
     DGV_RentMovie.DataSource = null;
     try
     {
         string queryObj = "Select * from CustomerWithMostVideos";
         DGV_RentMovie.DataSource = Obj_Database.FillDGV(queryObj);
         DGV_RentMovie.AutoResizeColumns(DataGridViewAutoSizeColumnsMode.AllCells);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }