ComboBoxEdit.EditValue Property

Allows you to select an item with the specific value, or to read the currently selected item's value. You can also use the ComboBoxEdit.SelectedItem property to do the same. Additionally, EditValue allows you to specify a custom editor value.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.XtraEditors.v20.1.dll

Declaration

[DXCategory("Data")]
public override object EditValue { get; set; }
<DXCategory("Data")>
Public Overrides Property EditValue As Object

Property Value

Type Description
Object

The edit value.

Remarks

The code sample below illustrates how to select a "Default" item in an in-place ComboBox editor when a user activates a cell.


private void gridView1_ShownEditor(object sender, EventArgs e)
{
    GridView currentView = sender as GridView;
    ComboBoxEdit cmbPO = currentView.ActiveEditor as ComboBoxEdit;
    cmbPO.EditValue = "Default";
}
See Also