Back to Devexpress

RepositoryItemCheckedComboBoxEdit.ValueMember Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-7fb22494.md

latest2.7 KB
Original Source

RepositoryItemCheckedComboBoxEdit.ValueMember Property

Gets or sets the field name in the bound data source whose contents are assigned to item values.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

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

Property Value

TypeDefaultDescription
StringString.Empty

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

|

Remarks

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

If a data source provides a field containing values for the check items, assign this field to the RepositoryItemCheckedComboBoxEdit.ValueMember property. In this instance, the items’ values (ListBoxItem.Value) will be initialized with values in this field.

A data source may also provide a field containing display text for the check items. To use these values, assign this field’s name to the RepositoryItemCheckedComboBoxEdit.DisplayMember property.

See Also

DataSource

DisplayMember

ValueMemberChanged

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace