Inplace Editors Overview
- 2 minutes to read
Cell values are edited using editors that ship with the DXEditors for Silverlight library. Each editor has a helper class (the BaseEditSettings descendant) responsible for an editor's functionality. When the same editor is used in multiple locations, the grid uses this helper class to paint its cells. The actual editors are only created when end-users start to edit a cell and are automatically destroyed when editing is completed.
By default, a grid automatically creates editors for all columns based on the type of their values. For instance, if a column is bound to a field that contains DateTime values, the grid creates a date editor for this column. If a column is bound to a field that contains numeric data, a numeric editor is used. Otherwise, a text editor is used. To manually assign a required editor (e.g. combo box or spin editor) to a column, use a column's ColumnBase.EditSettings property. Note - you should not assign an editor itself but rather its helper class (e.g. ComboBoxEditSettings).
If none of the editors in the DXEditors for Silverlight library meet the requirements of your application, you can create and display custom editors.
#Active Editor
If a View is in edit mode, the edited cell's editor is returned by the DataViewBase.ActiveEditor property. To obtain whether the View is in edit mode or not, use the DataViewBase.IsEditing property.