public void getDuLieu(int id) { DataTable dt = daThucPham.getDuLieu(id); frmSuDungDichVu.dataGridView1.Rows.Clear(); foreach (DataRow row in dt.Rows) { frmSuDungDichVu.dataGridView1.Rows.Add(row["TENTHUCPHAM"], row["DVT"], row["GIABAN"], row["ID_THUCPHAM"]); } //frmMain.dataGridView1.DataSource = daThucPham.getDuLieu(id); }
public DataTable getDuLieu(int id) { return(daThucPham.getDuLieu(id)); }