Skip to main content

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.v24.1.dll

NuGet Package: DevExpress.Win.Navigation

Declaration

[DXCategory("Data")]
public override object EditValue { get; set; }

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";
}

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