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

How to edit multiple property values in a single PropertyGridControl cell

$
0
0

This example demonstrates how to show multiple editors within one cell by overriding the ContentTemplate.
The recommended approach is to put CellEditorPresenter to ContextTemplate and set its Path property to the name of the required property:

[XAML]
<dxprg:PropertyDefinition.ContentTemplate><DataTemplate><StackPanel><dxprg:CellEditorPresenterPath="x"PathMode="Absolute"/><dxprg:CellEditorPresenterPath="y"PathMode="Absolute"/><dxprg:CellEditorPresenterPath="z"PathMode="Absolute"/></StackPanel></DataTemplate></dxprg:PropertyDefinition.ContentTemplate>

The native navigation, inplace editing, and other similar features will work automatically in this case.


Viewing all articles
Browse latest Browse all 7205

Trending Articles



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