For Filtering a combo box of String.
Inheritance: ICustomFilter
コード例 #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);
        }
コード例 #2
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;
        }