MultiColumnComboBoxColumnFilter Property

This gets the StringCollection used to filter the columns displayed by the drop-down portion of the combo box.

Definition

Namespace: EWSoftware.ListControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2023.4.9.0
public StringCollection ColumnFilter { get; }

Property Value

StringCollection
This is a quick way to filter the drop-down to a specific set of columns without having to specify column definitions. If empty, no filtering takes place.

Example

C#
cboVendor.DisplayMember = "VendorName";
cboVendor.ValueMember = "VendorKey";
cboVendor.ColumnFilter.AddRange(new[] { "VendorName", "Contact" });
cboVendor.DataSource = GetVendors();

See Also