Exemplo n.º 1
0
        /// <summary>
        /// Resets the filter set by this control.
        /// </summary>
        public void ResetFilter()
        {
            DataSourceFilter filter = GetDataSourceFilter();

            if (filter != null)
            {
                filter.Remove(FFilterElement);
            }
            FFilterElement = null;
        }
Exemplo n.º 2
0
        private void FilterData(DataSourceFilter filter)
        {
            object value = GetValue();

            // convert string value to appropriate data format
            if (value is string)
            {
                Column dataColumn = DataHelper.GetColumn(Report.Dictionary, DataColumn);
                if (dataColumn != null)
                {
                    value = Convert.ChangeType((string)value, dataColumn.DataType);
                }
            }

            FFilterElement = filter.Add(value, FilterOperation);
        }