public void ReloadData() { gridViewEntities.BeginDataUpdate(); try { ListOfStoresView.LoadAll(); } finally { gridViewEntities.EndDataUpdate(); } }
private void SetFocusOnStoreById(long p) { StoreView view = ListOfStoresView.GetById(p); if (view != null) { int h = gridViewEntities.GetRowHandle(ListOfStoresView.LastSearchIndex); if (h != DevExpress.XtraGrid.GridControl.InvalidRowHandle) { gridViewEntities.FocusedRowHandle = h; gridViewEntities.MakeRowVisible(h, true); } else { Context.CurrentView = FocusedEntityView; } } }