BaseEditSettings.DisplayTextConverter Property
Gets or sets a converter for the editor’s display value. This is a dependency property.
Namespace: DevExpress.Xpf.Editors.Settings
Assembly: DevExpress.Xpf.Core.v24.1.dll
NuGet Package: DevExpress.Wpf.Core
Declaration
Property Value
Type | Description |
---|---|
IValueConverter | An object that implements the IValueConverter interface. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to DisplayTextConverter |
---|---|
BarEditItem |
|
FilterField |
|
ColumnBase |
|
ColumnBase |
|
TreeViewControl |
|
PropertyDefinition |
|
SpreadsheetCustomCellEditEventArgs |
|
Remarks
The editor displays formatted text if the editor value is not being edited (for example, if the editor is not focused or it is read-only). You can use DevExpress Converters or create a custom converter (that implements the IValueConverter interface) to format displayed text.
The following code sample uses the DisplayTextConverter
property to allow users to search and filter grid data by display values of a checked column:
<dxg:GridColumn FieldName="IsChecked">
<dxg:GridColumn.EditSettings>
<!--Use TextEditSettings if you want to also display your custom text in cells-->
<dxe:CheckEditSettings DisplayTextConverter="{dxmvvm:BooleanToObjectConverter TrueValue=Yes, FalseValue=No}"/>
</dxg:GridColumn.EditSettings>
</dxg:GridColumn>
Refer to the following help topic for more information: Format Cell Values - DisplayTextConverter.