CalcEdit.EditValue Property
Gets or sets the editor’s value.
Namespace: DevExpress.XtraEditors
Assembly: DevExpress.XtraEditors.v25.2.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
Property Value
| Type | Description |
|---|---|
| Object | The edit value. |
Remarks
The CalcEdit control converts EditValue to decimal when the drop-down calendar opens or when the editor is validated. If the conversion fails, EditValue is set to 0.
Use the Value property to specify a decimal value. Setting the Value property to a new value updates EditValue.
// Set the edit value to a decimal number.
calcEdit1.EditValue = 42.5m;
// Set the edit value to a string (converted to a decimal number automatically).
calcEdit1.EditValue = "100";
decimal currentValue = Convert.ToDecimal(calcEdit1.EditValue);
See Also