Skip to main content
A newer version of this page is available. .

CalcEdit.EditValue Property

Gets or sets the editor’s value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.dll

Declaration

[Browsable(false)]
public override object EditValue { get; set; }

Property Value

Type Description
Object

An object representing the editor’s value.

Remarks

The EditValue property allows you to get or set the editor’s value. You can set EditValue to any object. However, the calc editor only supports numeric values and so the edit value is converted to a numeric type when required.

Before opening the dropdown calculator, the edit value is converted to decimal.

Also, when moving focus to another control or by pressing the ENTER key in the edit box (if the RepositoryItemTextEdit.ValidateOnEnterKey property is set to true), the edit value is converted to decimal and the result is assigned back to the edit value. If the conversion fails, the edit value is set to 0.

The CalcEdit.Value property matches the edit value. This represents the edit value converted to decimal. Assigning CalcEdit.Value modifies the EditValue property.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the EditValue 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.

See Also