Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
Frequently Used Methods
public void getInvoice() { HoaDonBUS hoaDonBUS = new HoaDonBUS(); DataTable dtHD = new DataTable(); dtHD = hoaDonBUS.GetAll(); foreach (DataRow row in dtHD.Rows) { int n = grvInvoice.Rows.Add(); grvInvoice.Rows[n].Cells[0].Value = row[0].ToString(); grvInvoice.Rows[n].Cells[1].Value = row[1].ToString(); grvInvoice.Rows[n].Cells[2].Value = row[2].ToString(); grvInvoice.Rows[n].Cells[3].Value = row[3].ToString(); grvInvoice.Rows[n].Cells[4].Value = row[4].ToString(); } }