public void LoadDatagrid() { DataTable dt = blod.cancelitemGroup(Convert.ToDateTime(DateTime.Now.ToShortDateString())); if (dt.Rows.Count > 0) { dataGridView1.Rows.Clear(); for (int i = 0; i < dt.Rows.Count; i++) { dataGridView1.Rows.Add(); dataGridView1.Rows[i].Cells["col_item"].Value = dt.Rows[i]["item"].ToString(); dataGridView1.Rows[i].Cells["col_quantity"].Value = dt.Rows[i]["quantity"].ToString(); dataGridView1.Rows[i].Cells["col_cost"].Value = dt.Rows[i]["cost"].ToString(); } } // itm.printcalcel(); //this.Close(); //DayEndReport dayer = new DayEndReport(); //dayer.ShowDialog(); // exportItemQuantity(); }