Habanero.Faces.Win.FilterControlWin.AddStringFilterComboBox C# (CSharp) Method

AddStringFilterComboBox() public method

Adds a ComboBox filter control
public AddStringFilterComboBox ( string labelText, string propertyName, ICollection options, bool strictMatch ) : IComboBox
labelText string The label to appear before the control
propertyName string The business object property on which to filter
options ICollection The collection of items used to fill the combo box.
strictMatch bool Whether to filter the DataGridView column on a strict match or using a LIKE operator
return IComboBox
        public IComboBox AddStringFilterComboBox(string labelText, string propertyName, ICollection options,
                                                 bool strictMatch)
        {
            ICustomFilter filter =
                _filterControlManager.AddStringFilterComboBox(labelText, propertyName, options, strictMatch);
            filter.ValueChanged += (sender, e) => { if (this.FilterMode == FilterModes.Filter) FireFilterEvent(); };
            var cmb = filter.Control as ComboBox;
            cmb.DropDownStyle = ComboBoxStyle.DropDownList;
            //comboBox.TextChanged += delegate { if (this.FilterMode == FilterModes.Filter) FireFilterEvent(); };
            //comboBox.SelectedIndexChanged += delegate { if (this.FilterMode == FilterModes.Filter) FireFilterEvent(); };
            return (IComboBox) filter.Control;
        }