void GetData(object sender, EventArgs e) { this.gridControl1.ItemsSource = new GanDB(); // lay bang rong dua vao tableView1.DeleteRow(0); gridControl1.ShowLoadingPanel = true; QLThuebaoDomainContext db = new QLThuebaoDomainContext(); if (m_kt) { EntityQuery<rp_dsgan> Query = db.GetRp_dsganQuery(); LoadOperation<rp_dsgan> LoadOp = db.Load(Query.OrderBy(p => p.ma_nvcs), LoadOp_Complete, null); } else { EntityQuery<rp_dsgan> Query = db.GetRp_dsganQuery(); LoadOperation<rp_dsgan> LoadOp = db.Load(Query.OrderBy(p => p.ma_nvkt), LoadOp_Complete, null); } }