private void gridControl1_DoubleClick(object sender, EventArgs e) { DataRow row = bus.GetData().Rows[gridView1.FocusedRowHandle]; frmChiTietHoaDon frm = new frmChiTietHoaDon(row["MAHD"].ToString()); frm.Show(); }
public void DisplayHoaDon() { /* Load data from table HoaDon and display in gridView */ gridHoaDon.DataSource = hoaDonBus.GetData(); gridView1.ExpandAllGroups(); }