public void SelectLookupGrid()
 {
     if (LookupGridVisible)
     {
         //move logical and key foucs to the grid view
         //have to add in the false focus first to ensire the ui properly processes the cvhange to focus on it
         LookupGridViewModel.DynamicGridViewModel.IsFocused = false;
         LookupGridViewModel.MoveDown();
         LookupGridViewModel.DynamicGridViewModel.IsFocused = true;
     }
 }
 public void LoadLookupGrid()
 {
     LookupGridViewModel = new LookupGridViewModel(this, OnRecordSelected);
     XrmButton           = new XrmButtonViewModel("Search", Search, ApplicationController);
 }