Esempio n. 1
0
 public void ReloadData()
 {
     gridViewEntities.BeginDataUpdate();
     try
     {
         ListOfStoresView.LoadAll();
     }
     finally
     {
         gridViewEntities.EndDataUpdate();
     }
 }
Esempio n. 2
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;
                }
            }
        }