BaseEdit.EditValue Property

Gets or sets the editor's value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[Bindable(true)]
[DXCategory("Data")]
[DefaultValue(null)]
public virtual object EditValue { get; set; }
<Bindable(True)>
<DXCategory("Data")>
<DefaultValue(Nothing)>
Public Overridable Property EditValue As Object

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));

Implements

DevExpress.XtraEditors.IProcessInplaceEditValueChanged.EditValue
See Also