private Domain.Store GetEntityByRowHandle(int rowHandle) { StoreView entity = null; if (gridViewEntities.IsDataRow(rowHandle)) { entity = (StoreView)gridViewEntities.GetRow(rowHandle); } return((entity == null) ? null : entity.Entity); }
private StoreView GetEntityViewByRowHandle(int rowHandle) { StoreView entity = null; if (gridViewEntities.IsDataRow(rowHandle)) { entity = (StoreView)gridViewEntities.GetRow(rowHandle); } return(entity); }
public void Init() { _storesViewList = new StoreViewList(); _storesViewList.Init(); _storesViewList.LoadAll(); if (_storesViewList.Count > 0) { _currentView = _storesViewList[0]; } }
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; } } }