windowsforms-devexpress-dot-xtraeditors-dot-controls-dot-converteditvalueeventargs-1a3351f1.md
Gets or sets either the edit or the display value of an editor.
Namespace : DevExpress.XtraEditors.Controls
Assembly : DevExpress.XtraEditors.v25.2.dll
NuGet Package : DevExpress.Win.Navigation
public object Value { get; set; }
Public Property Value As Object
| Type | Description |
|---|---|
| Object |
An object specifying either the edit or the display value of an editor.
|
The Value property value depends on the event currently handled.
Note : you must set the ConvertEditValueEventArgs.Handled property value to true to override the default conversion or formatting algorithm.
The following code snippets (auto-collected from DevExpress Examples) contain references 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.
private void checkedEdit_ParseEditValue(object sender, ConvertEditValueEventArgs e) {
if (string.IsNullOrEmpty(Convert.ToString(e.Value))) {
e.Value = noneValue;
if(fItem != null){
e.Value = fItem.FilterName;
e.Handled = true;
If fItem IsNot Nothing Then
e.Value = fItem.FilterName
e.Handled = True
See Also
ConvertEditValueEventArgs Class