void CheckCell(int rowIndex, int columnIndex) { GridColumn column = grid.Columns[columnIndex]; if (column.IsGrouped) { return; } grid.CurrentColumn = column; grid.View.FocusedRowHandle = rowIndex; grid.View.ShowEditor(); grid.UpdateLayout(); BaseEdit activeEditor = grid.View.ActiveEditor; if (activeEditor == null || !SpellChecker.CanCheck(activeEditor)) { CheckNextCell(); } else { UnsubscribeFromEvents(); SpellChecker.CheckCompleteFormShowing += new DevExpress.XtraSpellChecker.FormShowingEventHandler(Checker_CheckCompleteFormShowing); SpellChecker.AfterCheck += Checker_AfterCheck; SpellChecker.Check(activeEditor); } }
void CheckActiveEditor(BaseEdit activeEditor) { activeEditor.Dispatcher.BeginInvoke(new Action(() => { if (SpellChecker.CanCheck(activeEditor)) { SpellChecker.Check(activeEditor); } }), DispatcherPriority.Loaded); }