Log In
Home
Support
Demos
Documentation
Blogs
Training
Webinars
[Expand]General Information
[Collapse]WinForms Controls
  Prerequisites
 [Expand]What's Installed
 [Expand]Build an Application
 [Collapse]Controls and Libraries
  [Expand]Forms and User Controls
  [Expand]Messages, Notifications and Dialogs
  [Expand]Editors and Simple Controls
  [Expand]Ribbon, Bars and Menu
  [Expand]Application UI Manager
  [Expand]Docking Library
  [Expand]Data Grid
  [Expand]Vertical Grid
  [Expand]Pivot Grid
  [Expand]Tree List
  [Expand]Chart Control
  [Expand]Diagrams
  [Expand]Gauges
  [Expand]Map Control
  [Expand]Scheduler
  [Expand]Spreadsheet
  [Expand]Rich Text Editor
  [Collapse]Spell Checker
   [Expand]Product Information
   [Expand]Getting Started
   [Expand]Fundamentals
   [Expand]Visual Elements
   [Expand]Design-Time Features
   [Collapse]Examples
     How to: Add Dictionaries at Runtime
     How to: Switch Between Languages
     How to: Use the SharedDictionaryStorage Component
     How to: Check Spelling of a Grid Cell
     How to: Turn On the Check-As-You-Type Mode
     How to: Add Spell Check Menu to the Standard Text Controls
     How to: Obtain a List of Commands for the Misspelled Word
     How To: Customize the Spelling Dialog
     How to: Customize the Spelling Options Dialog
  [Expand]Form Layout Managers
  [Expand]Navigation Controls
  [Expand]Printing-Exporting
  [Expand]PDF Viewer
   Reporting
  [Expand]Snap
  [Expand]TreeMap Control
 [Expand]Common Features
  Get More Help
 [Expand]API Reference
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Document Server
[Expand]Reporting
[Expand]Report Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]CodeRush
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation

How to: Check Spelling of a Grid Cell

Show Me

A complete sample project is available in the DevExpress Code Examples database at http://www.devexpress.com/example=E2893.

The following example demonstrates how to check the spelling of the Grid Control cell content. We assume that the XtraSpellChecker is placed on the form, the necessary dictionaries are specified and the only problem is to find a way to check the grid cell content.

To do this you should handle the ColumnView.ShownEditor event of the XtraGrid. When it is fired, add a SpellCheck menu item to the cell context menu. When the user selects this menu command, the spell checker begins processing the cell content.

To switch on the SpellCheckMode.AsYouType mode, specify the SpellChecker.SpellCheckMode and call the SpellChecker.Check method beforehand.

The code implementing this solution is shown below.

How would you rate this topic?​​​​​​​