Back to Devexpress

RepositoryItemCheckedComboBoxEdit.AllowMultiSelect Property

windowsforms-devexpress-dot-xtraeditors-dot-repository-dot-repositoryitemcheckedcomboboxedit-5602fddb.md

latest2.2 KB
Original Source

RepositoryItemCheckedComboBoxEdit.AllowMultiSelect Property

Gets or sets whether users can select multiple items simultaneously within the dropdown.

Namespace : DevExpress.XtraEditors.Repository

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AllowMultiSelect { get; set; }
vb
<DXCategory("Behavior")>
<DefaultValue(False)>
Public Property AllowMultiSelect As Boolean

Property Value

TypeDefaultDescription
Booleanfalse

true to allow users to select multiple items within the dropdown; otherwise, false.

|

Remarks

Set the AllowMultiSelect property to true to allow users to select/deselect multiple items and change their checked state with a single click or press of the Space bar.

csharp
private void checkEdit1_CheckStateChanged(object sender, EventArgs e) {
    checkedComboBoxEdit1.Properties.AllowMultiSelect = checkEdit1.Checked;
}
vb
Private Sub checkEdit1_CheckStateChanged(ByVal sender As Object, ByVal e As EventArgs)
    checkedComboBoxEdit1.Properties.AllowMultiSelect = checkEdit1.Checked
End Sub

See Also

RepositoryItemCheckedComboBoxEdit Class

RepositoryItemCheckedComboBoxEdit Members

DevExpress.XtraEditors.Repository Namespace