For Filtering a combo box of String.
Inheritance: ICustomFilter
Esempio n. 1
0
        /// <summary>
        /// See <see cref="IFilterControl.AddStringFilterComboBox"/>
        /// </summary>
        public ICustomFilter AddStringFilterComboBox(string labelText, string columnName, ICollection options, bool strictMatch)
        {
            StringComboBoxFilter filter = new StringComboBoxFilter(_controlFactory, columnName,
                                                                   strictMatch
                                                                       ? FilterClauseOperator.OpEquals
                                                                       : FilterClauseOperator.OpLike);

            AddCustomFilter(labelText, filter);
            filter.Options = options;
            return(filter);
        }
        /// <summary>
        /// See <see cref="IFilterControl.AddStringFilterComboBox"/>
        /// </summary>
        public ICustomFilter AddStringFilterComboBox(string labelText, string columnName, ICollection options, bool strictMatch)
        {
            StringComboBoxFilter filter = new StringComboBoxFilter(_controlFactory, columnName,
                                                                   strictMatch 
                                                                       ? FilterClauseOperator.OpEquals
                                                                       : FilterClauseOperator.OpLike);

            AddCustomFilter(labelText, filter);
            filter.Options = options;
            return filter;
        }