private void PurchHistoryForm_Load(object sender, EventArgs e) { // TODO: This line of code loads data into the 'bookstoreDataSet3.Sales_History' table. You can move, or remove it, as needed. EmC = new EmController(); DataTable dt = EmC.ViewAllPurchaseHistory(); dataGridView1.DataSource = dt; dataGridView1.Refresh(); }