Back to Devexpress

RepositoryItemCheckedComboBoxEdit.DisplayMember Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-83a57497.md

latest2.8 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue("")]
[DXCategory("Data")]
public virtual string DisplayMember { get; set; }
vb
<DefaultValue("")>
<DXCategory("Data")>
Public Overridable Property DisplayMember As String

Property Value

TypeDefaultDescription
StringString.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.

See Also

DataSource

ValueMember

DisplayMemberChanged

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace