ConvertEditValueEventArgs.Value Property
Gets or sets either the edit or the display value of an editor.
Namespace: DevExpress.XtraEditors.Controls
Assembly: DevExpress.XtraEditors.v24.2.dll
NuGet Package: DevExpress.Win.Navigation
#Declaration
#Property Value
Type | Description |
---|---|
Object | An object specifying either the edit or the display value of an editor. |
#Remarks
The Value property value depends on the event currently handled.
- If the RepositoryItem.FormatEditValue event is being handled, Value represents the editor’s unformatted value. Setting the Value property updates the editor’s display text.
- If the RepositoryItem.ParseEditValue event is being handled, the Value property represents the editor’s display value. Setting the Value propertyupdates the editor’s BaseEdit.EditValue property.
Note: you must set the ConvertEditValueEventArgs.Handled property value to true to override the default conversion or formatting algorithm.
#Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Value property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.