/// <summary>
 /// Perform filter initialitazion and raises the FilterInitializing event.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.ComponentModel.CancelEventArgs"/> instance containing the event data.</param>
 /// <remarks>
 /// When this <i>column filter</i> control is added to the <i>column filters</i> array of the <i>filter manager</i>,
 /// the latter calls the <see cref="DgvBaseColumnFilter.Init"/> method which, in turn, calls this method.
 /// You can ovverride this method to provide initialization code or you can create an event handler and
 /// set the <i>Cancel</i> property of event argument to true, to skip standard initialization.
 /// </remarks>
 protected override void OnFilterInitializing(object sender, CancelEventArgs e)
 {
     base.OnFilterInitializing(sender, e);
     if (e.Cancel)
     {
         return;
     }
     comboBoxOperator.Items.AddRange(new object[] { "[...]", "=", "<>", ">", "<", "<=", ">=", "= Ø", "<> Ø" });
     comboBoxOperator.SelectedIndex = 0;
     FilterHost.RegisterComboBox(comboBoxOperator);
 }
 /// <summary>
 /// Perform filter initialitazion and raises the FilterInitializing event.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.ComponentModel.CancelEventArgs"/> instance containing the event data.</param>
 /// <remarks>
 /// When this <i>column filter</i> control is added to the <i>column filters</i> array of the <i>filter manager</i>,
 /// the latter calls the <see cref="DgvBaseColumnFilter.Init"/> method which, in turn, calls this method.
 /// You can ovverride this method to provide initialization code or you can create an event handler and
 /// set the <i>Cancel</i> property of event argument to true, to skip standard initialization.
 /// </remarks>
 protected override void OnFilterInitializing(object sender, CancelEventArgs e)
 {
     base.OnFilterInitializing(sender, e);
     if (e.Cancel)
     {
         return;
     }
     comboBoxMonth.SelectedValueChanged += new EventHandler(onFilterChanged);
     comboBoxYear.SelectedValueChanged  += new EventHandler(onFilterChanged);
     comboBoxYear.SelectedIndex          = comboBoxYear.Items.Count - 1;
     FilterHost.RegisterComboBox(comboBoxMonth);
     FilterHost.RegisterComboBox(comboBoxYear);
 }
        /// <summary>
        /// Perform filter initialitazion and raises the FilterInitializing event.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="System.ComponentModel.CancelEventArgs"/> instance containing the event data.</param>
        /// <remarks>
        /// When this <i>column filter</i> control is added to the <i>column filters</i> array of the <i>filter manager</i>,
        /// the latter calls the <see cref="DgvBaseColumnFilter.Init"/> method which, in turn, calls this method.
        /// You can ovverride this method to provide initialization code or you can create an event handler and
        /// set the <i>Cancel</i> property of event argument to true, to skip standard initialization.
        /// </remarks>
        protected override void OnFilterInitializing(object sender, CancelEventArgs e)
        {
            base.OnFilterInitializing(sender, e);
            if (e.Cancel)
            {
                return;
            }

            if (ColumnDataType == typeof(string))
            {
                comboBoxOperator.Items.AddRange(new object[] { "..xxx..", "xxx..", "..xxx", "=", "<>", "= Ø", "<> Ø" });
            }
            else
            {
                comboBoxOperator.Items.AddRange(new object[] { "=", "<>", ">", "<", "<=", ">=", "= Ø", "<> Ø" });
            }

            comboBoxOperator.SelectedIndex = 0;
            FilterHost.RegisterComboBox(comboBoxOperator);
        }
 /// <summary>
 /// Perform filter initialitazion and raises the FilterInitializing event.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="System.ComponentModel.CancelEventArgs"/> instance containing the event data.</param>
 /// <remarks>
 /// When this <i>column filter</i> control is added to the <i>column filters</i> array of the <i>filter manager</i>,
 /// the latter calls the <see cref="DgvBaseColumnFilter.Init"/> method which, in turn, calls this method.
 /// You can ovverride this method to provide initialization code or you can create an event handler and
 /// set the <i>Cancel</i> property of event argument to true, to skip standard initialization.
 /// </remarks>
 protected override void OnFilterInitializing(object sender, CancelEventArgs e)
 {
     base.OnFilterInitializing(sender, e);
     if (e.Cancel)
     {
         return;
     }
     comboBoxOperator.Items.AddRange(new object[] { "=", "<>", "= Ø", "<> Ø" });
     comboBoxOperator.SelectedIndex = 0;
     if (DataGridViewColumn is DataGridViewComboBoxColumn)
     {
         comboBoxValue.ValueMember   = ((DataGridViewComboBoxColumn)DataGridViewColumn).ValueMember;
         comboBoxValue.DisplayMember = ((DataGridViewComboBoxColumn)DataGridViewColumn).DisplayMember;
         comboBoxValue.DataSource    = ((DataGridViewComboBoxColumn)DataGridViewColumn).DataSource;
     }
     else
     {
         comboBoxValue.ValueMember   = DataGridViewColumn.DataPropertyName;
         comboBoxValue.DisplayMember = DataGridViewColumn.DataPropertyName;
         RefreshValues();
     }
     FilterHost.RegisterComboBox(comboBoxOperator);
     FilterHost.RegisterComboBox(comboBoxValue);
 }