public frmTinhTien(int HDID) { InitializeComponent(); MasterDataContext db = new MasterDataContext(); gridControl1.DataSource = db.CTHD_Select(HDID); }
void LoadCTHD(int HDID) { try { gcCTHD.DataSource = db.CTHD_Select(HDID); } catch { } }