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

RepositoryItemCheckedComboBoxEdit.DisplayMember Property

Gets or sets a field name in the bound data source whose contents are to be displayed by the control’s check items.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v19.1.dll

Declaration

[DefaultValue("")]
[DXCategory("Data")]
public virtual string DisplayMember { get; set; }

Property Value

Type Default Description
String String.Empty

A string value specifying a field name in a data source.

Remarks

A CheckedComboBoxEdit control can be populated with items from a data source. To assign a data source, use the RepositoryItemCheckedComboBoxEdit.DataSource property.

Check items are identified by their values (ListBoxItem.Value). In addition, each item has some display text (CheckedListBoxItem.Description). If the data source provides fields containing values and display values for the check items, you can use these values automatically. To do this, assign the names of these fields to the RepositoryItemCheckedComboBoxEdit.ValueMember and RepositoryItemCheckedComboBoxEdit.DisplayMember properties.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DisplayMember 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