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

BaseEdit.EditValue Property

Gets or sets the editor’s value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[Bindable(true)]
[DXCategory("Data")]
[DefaultValue(null)]
public virtual object EditValue { get; set; }

Property Value

Type Default Description
Object *null*

An object representing the editor’s value.

Remarks

Setting this property to a new value raises the RepositoryItem.EditValueChanging event. The RepositoryItem.EditValueChanged event fires after the EditValue property value has been changed.

Use the BaseEdit.Text property to obtain the editor’s text representation of this value.

The following example binds a CalcEdit editor to the Freight field in a data source (OrdersBindingSource).


calcEdit1.DataBindings.Add(new System.Windows.Forms.Binding("EditValue", ordersBindingSource, "Freight", true));

The following code snippets (auto-collected from DevExpress Examples) contain references 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