A newer version of this page is available. Switch to the current version.

BaseEdit.EditValue Property

Gets or sets the editor's value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v19.2.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));
See Also