private void OnGridView_FocusedRowChanged(object sender, DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgs e) { viewModel.ExecuteSelect(e.FocusedRowHandle); LoadNextPageIfNeeded(); UpdateNavigationButtons(); // First stop the timer to clear the last event and then enable it. timer.Stop(); timer.Start(); // Focus back to search box textBoxSearch.Select(); }