Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to: Specify editors for displayed properties

$
0
0

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.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>