Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

CalcEdit.EditValue Property

Gets or sets the editor’s value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#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.

See Also