Esempio n. 1
0
 private void View_Data()
 {
     dt.Clear();
     using (OleDbConnection con = new OleDbConnection(OledbCon))
     {
         string query = "Select * From Master_Data";
         using (OleDbDataAdapter sda = new OleDbDataAdapter(query, con))
         {
             sda.Fill(dt);
             InventoryData.DataSource = dt;
             InventoryData.AutoResizeColumns();
             InventoryData.AutoResizeRows();
         }
     }
 }