Cell editors can be specified at the PropertyGridControl level as well as in a ViewModel/Model.
In the first case, we will need to create PropertyDefinition objects for required properties. There are several ways to map definitions to properties, please refer to Property Definitions for detailed information.
To assign an editor, you can use either of the following properties:
- EditSettings;
- CellTemplate. Pay special attention that CellTemplate should be defined in a specific manner in order not to break navigation, validation, and synchronizing values. These requirements are listed described at PropertyDefinition.CellTemplateProperty.
On the ViewModel/Model level, use the DefaultEditorAttribute (it is used by GridControl, PropertyGridControl, and DataLayoutControl) and PropertyGridEditorAttribute.
↧
How to: Specify editors for displayed properties
↧