# Checking Spelling in Controls

## Content



You can use **SpellChecker for WPF and Silverlight** to check the spelling in any control that contains text. This support is built into the **C1RichTextBox** and Microsoft **TextBox** controls. To check the spelling in other controls, provide a wrapper class that implements the [ISpellCheckableEditor](/componentone/api/wpf/online-spellchecker/dotnet-framework-api/C1.WPF.SpellChecker.4.6.2/C1.WPF.SpellChecker.ISpellCheckableEditor.html) interface.

For example, the "SpellCheckerSample" shows how you can check the spelling in a **DataGrid** control. To do this, it creates a class called **DataGridSpellWrapper** that implements the ISpellCheckableEditor interface on behalf of the grid.

The wrapper class enumerates the grid cells and exposes the text in each cell to the [C1SpellChecker](/componentone/api/wpf/online-spellchecker/dotnet-framework-api/C1.WPF.SpellChecker.4.6.2/C1.WPF.SpellChecker.C1SpellChecker.html) component. When it finds an error, it selects the cell and the dialog box shows the error and suggestions as usual. The image below illustrates what the SpellCheckerSample sample looks like while checking the spelling in a **DataGrid.**

![](https://cdn.mescius.io/document-site-files/images/7820228e-8a85-4d11-bb58-41d586ccf99f/graphics/samplespellgrid.jpg)

## See Also

[C1SpellChecker Samples](/componentone/docs/wpf/online-spellchecker/C1SpellChecker_Samples)