WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MultiColumnComboBox

    Show / Hide Table of Contents

    Class MultiColumnComboBox

    Represents a combo box that can show multiple columns in the dropdown.

    Inheritance
    System.Object
    ComboDropDown
    ComboBoxBase
    ComboBoxBaseDataBound
    MultiColumnComboBox
    Implements
    IThemedControl
    System.ComponentModel.ISupportInitialize
    INonClientPaintingSupport
    ISupportOffice2007Theme
    IThemeProvider
    IVisualStyle
    Inherited Members
    ComboBoxBaseDataBound.OnHandleDestroyed(EventArgs)
    ComboBoxBaseDataBound.OnFontChanged(EventArgs)
    ComboBoxBaseDataBound.AddItemsCore(Object[])
    ComboBoxBaseDataBound.OnDropDownStyleChanged(EventArgs)
    ComboBoxBaseDataBound.DetermineHeightsBasedOnFont(Graphics, Int32)
    ComboBoxBaseDataBound.GetListNCHeight()
    ComboBoxBaseDataBound.OnListSelectedValueChangedWhileNotShowingPopup(Int32)
    ComboBoxBaseDataBound.OnSelectionChangedOnPopupClose()
    ComboBoxBaseDataBound.OnUpdateSelectionBeforeValidate()
    ComboBoxBaseDataBound.OnNewListItemKeyedIn(Int32)
    ComboBoxBaseDataBound.OnTextChanged(EventArgs)
    ComboBoxBaseDataBound.PerformAllowNewText(Message)
    ComboBoxBaseDataBound.SetPopupText(String)
    ComboBoxBaseDataBound.GetPopupText()
    ComboBoxBaseDataBound.SetSelectedText(String, Int32)
    ComboBoxBaseDataBound.FilterItemOnProperty(Object)
    ComboBoxBaseDataBound.FilterItemOnProperty(Object, String)
    ComboBoxBaseDataBound.GetItemText(Object)
    ComboBoxBaseDataBound.OnBindingContextChanged(EventArgs)
    ComboBoxBaseDataBound.OnSelectedIndexChanged(EventArgs)
    ComboBoxBaseDataBound.OnSelectedValueChanged(EventArgs)
    ComboBoxBaseDataBound.OnSelectedItemChanged(EventArgs)
    ComboBoxBaseDataBound.OnValueMemberChanged(EventArgs)
    ComboBoxBaseDataBound.OnValidating(CancelEventArgs)
    ComboBoxBaseDataBound.OnEnter(EventArgs)
    ComboBoxBaseDataBound.OnLeave(EventArgs)
    ComboBoxBaseDataBound.SetItemCore(Int32, Object)
    ComboBoxBaseDataBound.ShouldSerializeText()
    ComboBoxBaseDataBound.ToString()
    ComboBoxBaseDataBound.OtherChangesMade()
    ComboBoxBaseDataBound.ListControl
    ComboBoxBaseDataBound.Sorted
    ComboBoxBaseDataBound.MaxDropDownItems
    ComboBoxBaseDataBound.Items
    ComboBoxBaseDataBound.DataSource
    ComboBoxBaseDataBound.DisplayMember
    ComboBoxBaseDataBound.AllowNewText
    ComboBoxBaseDataBound.SelectedItem
    ComboBoxBaseDataBound.SelectedValue
    ComboBoxBaseDataBound.SelectedText
    ComboBoxBaseDataBound.SelectionLength
    ComboBoxBaseDataBound.SelectionStart
    ComboBoxBaseDataBound.ValueMember
    ComboBoxBaseDataBound.FlatStyle
    ComboBoxBaseDataBound.DataManager
    ComboBoxBaseDataBound.SelectedIndexChanged
    ComboBoxBaseDataBound.DataSourceChanged
    ComboBoxBaseDataBound.DisplayMemberChanged
    ComboBoxBaseDataBound.ValueMemberChanged
    ComboBoxBaseDataBound.SelectedValueChanged
    ComboBoxBase.OnEndInit()
    ComboBoxBase.OnHandleCreated(EventArgs)
    ComboBoxBase.OnDropDownCloseOnClick(MouseClickCancelEventArgs)
    ComboBoxBase.OnSelectedIndexChanging(SelectedIndexChangingArgs)
    ComboBoxBase.GetPopupControlItemText(Int32)
    ComboBoxBase.GetPopupControlListControl()
    ComboBoxBase.CreatePopupContainer()
    ComboBoxBase.IsValidIndex(Int32)
    ComboBoxBase.FindItem(String, Boolean, Int32, Boolean)
    ComboBoxBase.GetListControlList()
    ComboBoxBase.MoveSelelctionInPopupControl(Boolean)
    ComboBoxBase.PerformTextAutoComplete(KeyPressEventArgs)
    ComboBoxBase.OnAutoCompleteChanged()
    ComboBoxBase.HasListInterface()
    ComboBoxBase.OnNoChangeDetectedOnPopupClosed()
    ComboBoxBase.OnMouseUpOnQuickSelect()
    ComboBoxBase.IsIndexFromPointAvaillable()
    ComboBoxBase.GetIndexFromPoint(Point)
    ComboBoxBase.AttachPopupControl()
    ComboBoxBase.DetachPopupControl(Boolean)
    ComboBoxBase.ProcessPopupControlMouseMove(Object, MouseEventArgs)
    ComboBoxBase.ProcessListMouseMove(Object, MouseEventArgs)
    ComboBoxBase.IsTextValid(String)
    ComboBoxBase.CorrectPopupLocation(Point)
    ComboBoxBase.PopupControl
    ComboBoxBase.UpdateSelectionBeforeValidate
    ComboBoxBase.AutoComplete
    ComboBoxBase.DropDownCloseOnClick
    ComboBoxBase.SelectedIndexChanging
    ComboBoxBase.AutoCompleteChanged
    ComboDropDown.m_lastFoundIndex
    ComboDropDown.initializing
    ComboDropDown.cachedBackColor
    ComboDropDown.cachedForeColor
    ComboDropDown.m_scrollersFrame
    ComboDropDown.autoCompleteSuccess
    ComboDropDown.OnSystemColorsChanged(EventArgs)
    ComboDropDown.OnBeginInit()
    ComboDropDown.CreateTextBox()
    ComboDropDown.CreateDropDownButton()
    ComboDropDown.InitDropDownButton(DropDownButton)
    ComboDropDown.InitTextBox()
    ComboDropDown.UnInitTextBox()
    ComboDropDown.UpdatePopupControlRelationship()
    ComboDropDown.UpdatePopupBounds()
    ComboDropDown.ResetBackColor()
    ComboDropDown.ShouldSerializeBackColor()
    ComboDropDown.ResetDropDownWidth()
    ComboDropDown.ShouldSerializeDropDownWidth()
    ComboDropDown.ResetFlatBorderColor()
    ComboDropDown.ShouldSerializeFlatBorderColor()
    ComboDropDown.OnGotFocus(EventArgs)
    ComboDropDown.OnLostFocus(EventArgs)
    ComboDropDown.OnTabStopChanged(EventArgs)
    ComboDropDown.OnValidated(EventArgs)
    ComboDropDown.SetText(String, Boolean)
    ComboDropDown.OnBorderSidesChanged(EventArgs)
    ComboDropDown.OnBorder3DStyleChanged(EventArgs)
    ComboDropDown.CommitChanges()
    ComboDropDown.ResetToLatestCommittedText()
    ComboDropDown.OnDropDown(EventArgs)
    ComboDropDown.OnSelectionChangeCommitted(EventArgs)
    ComboDropDown.RaiseSelectionChangeCommitted()
    ComboDropDown.INonClientPaintingSupport.NonClientPaint(PaintEventArgs, Rectangle, Rectangle)
    ComboDropDown.OnKeyDown(KeyEventArgs)
    ComboDropDown.IsInputKey(Keys)
    ComboDropDown.IsInputChar(Char)
    ComboDropDown.ProcessDialogKey(Keys)
    ComboDropDown.ProcessCmdKey(Message, Keys)
    ComboDropDown.ForwardKeyMessageToPopupControl(Int32, IntPtr, IntPtr)
    ComboDropDown.UpdatePopupControl()
    ComboDropDown.ProcessDDMouseDown(MouseEventArgs)
    ComboDropDown.ShowPopup()
    ComboDropDown.HidePopup()
    ComboDropDown.OnLayout(LayoutEventArgs)
    ComboDropDown.UpdateLayout(Graphics)
    ComboDropDown.SetNeedLayout(Boolean)
    ComboDropDown.UpdateEditPortionBounds(Int32)
    ComboDropDown.SetTextBoxBounds(Rectangle)
    ComboDropDown.GetComboBoxDropDownWidth()
    ComboDropDown.GetOfficeStyleComboBoxDropDownWidth()
    ComboDropDown.UpdateDropDownButtonBounds()
    ComboDropDown.UpdatePopupControlBounds()
    ComboDropDown.GetEmbeddedChildBounds(Int32)
    ComboDropDown.GetEmbeddedChildBounds()
    ComboDropDown.OnPaint(PaintEventArgs)
    ComboDropDown.DrawEditPortion(PaintEventArgs)
    ComboDropDown.DrawListModeEditPortion(PaintEventArgs, Color, Color, Boolean)
    ComboDropDown.DrawDropDownPortion(PaintEventArgs)
    ComboDropDown.DrawEditPortionBorderAndBackground(PaintEventArgs)
    ComboDropDown.DrawBorderAndBackground(Graphics, Rectangle)
    ComboDropDown.DrawUnThemedBorder(Graphics, Rectangle)
    ComboDropDown.DrawUnThemedBackground(Graphics, Rectangle)
    ComboDropDown.DrawListPortion(PaintEventArgs)
    ComboDropDown.CreateScrollersFrame()
    ComboDropDown.AttachScrollersFrame(Control)
    ComboDropDown.DetachScrollersFrame()
    ComboDropDown.InitScrollersFrame()
    ComboDropDown.OnMouseMove(MouseEventArgs)
    ComboDropDown.ProcessMouseMove(MouseEventArgs, Boolean)
    ComboDropDown.OnMouseLeave(EventArgs)
    ComboDropDown.OnMouseEnter(EventArgs)
    ComboDropDown.OnMouseDown(MouseEventArgs)
    ComboDropDown.DefWndProc(Message)
    ComboDropDown.OnMouseUp(MouseEventArgs)
    ComboDropDown.OnMouseWheel(MouseEventArgs)
    ComboDropDown.OnThemeChanged(EventArgs)
    ComboDropDown.ApplyScaleToControl(Single)
    ComboDropDown.OnSizeChanged(EventArgs)
    ComboDropDown.ISupportOffice2007Theme.EnableOffice2007Style()
    ComboDropDown.IsInitializing
    ComboDropDown.SuppressDropDownEvent
    ComboDropDown.UseOffice2007ColorsInActiveMode
    ComboDropDown.UseMetroColorsInActiveMode
    ComboDropDown.UseMnemonic
    ComboDropDown.CaseSensitiveAutocomplete
    ComboDropDown.Focused
    ComboDropDown.RightToLeft
    ComboDropDown.IgnorePopupValueChange
    ComboDropDown.MatchFirstCharacterOnly
    ComboDropDown.BackColor
    ComboDropDown.NumberOnly
    ComboDropDown.ReadOnly
    ComboDropDown.CharacterCasing
    ComboDropDown.IgnoreThemeBackground
    ComboDropDown.TextAlign
    ComboDropDown.ContextMenu
    ComboDropDown.ForeColor
    ComboDropDown.Border3DStyle
    ComboDropDown.BorderSides
    ComboDropDown.LastCommittedText
    ComboDropDown.DroppedDown
    ComboDropDown.PopupContainer
    ComboDropDown.DefaultSize
    ComboDropDown.TextBox
    ComboDropDown.DropDownButton
    ComboDropDown.DropDownButtonHeight
    ComboDropDown.EditPortionHeight
    ComboDropDown.PreventHeightChange
    ComboDropDown.MaxLength
    ComboDropDown.DropDownWidth
    ComboDropDown.DropDownStyle
    ComboDropDown.FlatBorderColor
    ComboDropDown.BackgroundImage
    ComboDropDown.BackgroundImageLayout
    ComboDropDown.AllowQuickSelection
    ComboDropDown.GrayOnReadOnly
    ComboDropDown.UseBackColor
    ComboDropDown.UseMetroButtonColor
    ComboDropDown.AllowMouseWheelSelection
    ComboDropDown.CreateParams
    ComboDropDown.IsPopUpControlType
    ComboDropDown.NeedLayout
    ComboDropDown.MetroBorderColor
    ComboDropDown.IThemedControl.ThemesEnabled
    ComboDropDown.BeforeTouchSize
    ComboDropDown.EnableTouchMode
    ComboDropDown.BorderSidesChanged
    ComboDropDown.Border3DStyleChanged
    ComboDropDown.DropDown
    ComboDropDown.SelectionChangeCommitted
    ComboDropDown.DropDownStyleChanged
    ComboDropDown.ReadOnlyChanged
    ComboDropDown.ThemeChanged
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class MultiColumnComboBox : ComboBoxBaseDataBound, IThemedControl, ISupportInitialize, INonClientPaintingSupport, ISupportOffice2007Theme, IThemeProvider, IVisualStyle
    Remarks

    This combo box is meant to be used in data bound mode where it will show all the records and the different fields in the data source in a multi column grid, in the dropdown.

    Data binding is done as usual through the DataSource, DisplayMember and ValueMember properties. The DisplayMember is used to determine which field will be shown in the combo.

    If you bind an array of objects of custom type then the public properties in that type will correspond to each column in the dropdown multi-column grid.

    Note that in this version you cannot populate the Items of this combo manually.

    Constructors

    MultiColumnComboBox()

    Initializes a new instance of the MultiColumnComboBox class.

    Declaration
    public MultiColumnComboBox()

    Properties

    AllowFiltering

    Declaration
    public bool AllowFiltering { get; set; }
    Property Value
    Type Description
    System.Boolean

    AlphaBlendSelectionColor

    Gets or sets the System.Drawing.Color for alpha blended row selections in the dropdown.

    Declaration
    public Color AlphaBlendSelectionColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    A System.Drawing.Color for alpha blended row selections. It is important to set the alpha value to be less than 255 when calling System.Drawing.Color.FromArgb(System.Int32).

    CanApplyTheme

    Gets or sets a value indicating whether a SkinManager theme settings can be applied to the control.

    Declaration
    public bool CanApplyTheme { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is true.

    Remarks

    This property must be initialized before applying the VisualTheme />

    CanOverrideStyle

    Gets or sets a value indicating whether control elements styles can be overridden by theme style settings.

    Declaration
    public bool CanOverrideStyle { get; set; }
    Property Value
    Type Description
    System.Boolean

    Default value is false.

    Remarks

    By default, the control's element styles will not be overridden by theme style settings if the style is set in sample level. If this property is enabled, element style will be overridden by theme style settings event if it is set in sample level. This property should be enabled or disabled before calling the ThemeName property of the control.

    Columns

    Gets the Columns to be added for the MultiColumnComboBox.

    Declaration
    public ColumnCollection Columns { get; }
    Property Value
    Type Description
    ColumnCollection

    ComboBoxRenderer

    Update the renderer for VisualStyle based theme and Office2016 theme.

    Declaration
    protected override ComboBoxAdvRenderer ComboBoxRenderer { get; }
    Property Value
    Type Description
    ComboBoxAdvRenderer
    Overrides
    ComboDropDown.ComboBoxRenderer

    Filter

    Gets or sets the filter for the underlying collection, which filters the data using required criteria.

    Declaration
    public Predicate<object> Filter { get; set; }
    Property Value
    Type Description
    System.Predicate<System.Object>

    The default value is Null. The predicate handler should be handled in application level.

    Font

    Gets or sets the System.Drawing.Font value for the control.

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type Description
    System.Drawing.Font
    Overrides
    ComboDropDown.Font

    IntegralHeight

    Indicates whether the control should resize to avoid showing partial items.

    Declaration
    public override bool IntegralHeight { get; set; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    ComboBoxBaseDataBound.IntegralHeight

    IsVisualStyleEnabled

    Gets a value indicating whether the visual style based theme is applied to the control. This also indicates whether the theme files are referred from external assemblies or not.

    Declaration
    public bool IsVisualStyleEnabled { get; }
    Property Value
    Type Description
    System.Boolean

    Return true, if the visual style based theme is applied to control. Otherwise returns false.

    ItemCollection

    Gets the Item Collection.

    Declaration
    public ItemRowCollection ItemCollection { get; }
    Property Value
    Type Description
    ItemRowCollection

    ListBox

    Gets the dropdown list box, which is an instance of the GridListBox associated with this combo.

    Declaration
    public virtual GridListBox ListBox { get; }
    Property Value
    Type Description
    GridListBox

    MetroColor

    Gets or sets the theme color of the MultiColumnComboBoxAdv

    Declaration
    public Color MetroColor { get; set; }
    Property Value
    Type Description
    System.Drawing.Color

    MultiColumn

    Gets or sets a value indicating whether multiple columns or a single column should be shown in the dropdown.

    Declaration
    public virtual bool MultiColumn { get; set; }
    Property Value
    Type Description
    System.Boolean

    Office2007ColorTheme

    Gets or sets Office 2007 color scheme.

    Declaration
    public Office2007Theme Office2007ColorTheme { get; set; }
    Property Value
    Type Description
    Office2007Theme

    Office2010ColorTheme

    Gets or sets Office 2010 color scheme.

    Declaration
    public Office2010Theme Office2010ColorTheme { get; set; }
    Property Value
    Type Description
    Office2010Theme

    ScrollMetroColorTable

    Declaration
    public MetroColorTable ScrollMetroColorTable { get; set; }
    Property Value
    Type Description
    MetroColorTable

    SelectedIndex

    Gets or sets the index of the currently selected item.

    Declaration
    public override int SelectedIndex { get; set; }
    Property Value
    Type Description
    System.Int32
    Overrides
    ComboBoxBaseDataBound.SelectedIndex
    Remarks

    Overriden.

    ShowColumnHeader

    Gets or sets a value indicating whether column headers should be displayed in the dropdown.

    Declaration
    public bool ShowColumnHeader { get; set; }
    Property Value
    Type Description
    System.Boolean

    Style

    Gets or sets an advanced appearance for this control.

    Declaration
    public VisualStyle Style { get; set; }
    Property Value
    Type Description
    VisualStyle

    Text

    Gets / sets text.

    Declaration
    public override string Text { get; set; }
    Property Value
    Type Description
    System.String
    Overrides
    ComboBoxBaseDataBound.Text

    ThemeName

    Gets or sets the theme name of the control.

    Declaration
    public string ThemeName { get; set; }
    Property Value
    Type Description
    System.String

    The default value is null.

    Remarks

    This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control.

    ThemeStyle

    Gets or sets the MultiColumnComboBoxVisualStyle value used to customize the appearance of the .

    Declaration
    public MultiColumnComboBoxVisualStyle ThemeStyle { get; set; }
    Property Value
    Type Description
    MultiColumnComboBoxVisualStyle
    Remarks

    This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control.

    Methods

    ArgToRadians(Int64)

    Declaration
    protected static double ArgToRadians(long arg)
    Parameters
    Type Name Description
    System.Int64 arg
    Returns
    Type Description
    System.Double

    CreateAccessibilityInstance()

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type Description
    System.Windows.Forms.AccessibleObject
    Overrides
    ComboBoxBase.CreateAccessibilityInstance()

    CreateListControl()

    Creates the ListControl.

    Declaration
    protected override ListControl CreateListControl()
    Returns
    Type Description
    System.Windows.Forms.ListControl

    Returns List control

    Overrides
    ComboBoxBaseDataBound.CreateListControl()

    DetachScrollFrame()

    Detaches scrollersFrame from the PopupControl.

    Declaration
    protected void DetachScrollFrame()

    Dispose(Boolean)

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing
    Overrides
    ComboBoxBaseDataBound.Dispose(Boolean)

    FindString(String)

    Finds the first item in the combo box that matches the specified string.

    Declaration
    public override int FindString(string s)
    Parameters
    Type Name Description
    System.String s

    String for searching

    Returns
    Type Description
    System.Int32

    Returns the Found index

    Overrides
    ComboBoxBaseDataBound.FindString(String)

    FindString(String, Int32)

    Finds the first item in the combo box that matches the specified string.

    Declaration
    public override int FindString(string s, int startIndex)
    Parameters
    Type Name Description
    System.String s

    string for searching

    System.Int32 startIndex

    Start Index

    Returns
    Type Description
    System.Int32

    Returns the Found index

    Overrides
    ComboBoxBaseDataBound.FindString(String, Int32)

    FindStringExact(String)

    Finds the first item in the combo box that matches the specified string.

    Declaration
    public override int FindStringExact(string s)
    Parameters
    Type Name Description
    System.String s

    String for searching

    Returns
    Type Description
    System.Int32

    Returns the Found index

    Overrides
    ComboBoxBaseDataBound.FindStringExact(String)

    FindStringExact(String, Boolean)

    Finds the first item in the combo box that matches the specified string.

    Declaration
    public override int FindStringExact(string text, bool ignoreCase)
    Parameters
    Type Name Description
    System.String text

    String text

    System.Boolean ignoreCase

    Bool value for ignore case

    Returns
    Type Description
    System.Int32

    Returns the found index

    Overrides
    ComboBoxBaseDataBound.FindStringExact(String, Boolean)

    FindStringExact(String, Int32)

    Finds the first item in the combo box that matches the specified string.

    Declaration
    public override int FindStringExact(string s, int startIndex)
    Parameters
    Type Name Description
    System.String s

    string for searching

    System.Int32 startIndex

    Start Index

    Returns
    Type Description
    System.Int32

    Returns the Found index

    Overrides
    ComboBoxBaseDataBound.FindStringExact(String, Int32)

    GetActiveThemeName()

    Returns the active theme name.

    Declaration
    public string GetActiveThemeName()
    Returns
    Type Description
    System.String

    InitListControl(ListControl)

    Declaration
    protected override void InitListControl(ListControl listControl)
    Parameters
    Type Name Description
    System.Windows.Forms.ListControl listControl
    Overrides
    ComboBoxBaseDataBound.InitListControl(ListControl)

    InitPopupContainer()

    Declaration
    protected override void InitPopupContainer()
    Overrides
    ComboDropDown.InitPopupContainer()

    NativeAdd(Object)

    Declaration
    protected override void NativeAdd(object item)
    Parameters
    Type Name Description
    System.Object item
    Overrides
    ComboBoxBaseDataBound.NativeAdd(Object)

    NativeClear()

    Declaration
    protected override void NativeClear()
    Overrides
    ComboBoxBaseDataBound.NativeClear()

    NativeInsert(Int32, Object)

    Declaration
    protected override void NativeInsert(int index, object item)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object item
    Overrides
    ComboBoxBaseDataBound.NativeInsert(Int32, Object)

    NativeRemoveAt(Int32)

    Declaration
    protected override void NativeRemoveAt(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Overrides
    ComboBoxBaseDataBound.NativeRemoveAt(Int32)

    OnBeforePopup()

    Called before the popUp is displayed

    Declaration
    protected override void OnBeforePopup()
    Overrides
    ComboBoxBase.OnBeforePopup()
    Remarks

    Overridden.Depending on the number of items set as MaxDropDownItems,ListBox adjusts its height.

    OnDataManagerPositionChanged()

    Declaration
    protected override void OnDataManagerPositionChanged()
    Overrides
    ComboBoxBaseDataBound.OnDataManagerPositionChanged()

    OnDataSourceChanged(EventArgs)

    Raises the DataSourceChanged event.

    Declaration
    protected override void OnDataSourceChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    Overrides
    ComboBoxBaseDataBound.OnDataSourceChanged(EventArgs)
    Remarks

    If Control's DataSource is null,then the ListBox DataSource resets to null

    OnDisplayMemberChanged(EventArgs)

    Raises the DisplayMemberChanged event.

    Declaration
    protected override void OnDisplayMemberChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    Overrides
    ComboBoxBaseDataBound.OnDisplayMemberChanged(EventArgs)

    OnEnabledChanged(EventArgs)

    Declaration
    protected override void OnEnabledChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    ComboDropDown.OnEnabledChanged(EventArgs)

    OnKeyPress(KeyPressEventArgs)

    Raises the KeyPress event

    Declaration
    protected override void OnKeyPress(KeyPressEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.KeyPressEventArgs e

    contains the event data

    Overrides
    ComboBoxBaseDataBound.OnKeyPress(KeyPressEventArgs)

    OnListMouseUp(MouseEventArgs)

    Raises the ListBox MouseUp event

    Declaration
    protected override void OnListMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    contains the event data

    Overrides
    ComboBoxBase.OnListMouseUp(MouseEventArgs)

    OnPopupClosed(PopupClosedEventArgs)

    Declaration
    protected override void OnPopupClosed(PopupClosedEventArgs e)
    Parameters
    Type Name Description
    PopupClosedEventArgs e
    Overrides
    ComboBoxBaseDataBound.OnPopupClosed(PopupClosedEventArgs)

    OnReadOnlyChanged(EventArgs)

    Declaration
    protected override void OnReadOnlyChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    ComboDropDown.OnReadOnlyChanged(EventArgs)

    OnSelectionChangedByKey()

    Raises the OnSelectionChangeByKey event

    Declaration
    protected override void OnSelectionChangedByKey()
    Overrides
    ComboBoxBaseDataBound.OnSelectionChangedByKey()

    OnTextBoxKeyUp(KeyEventArgs)

    Raises the textbox keyup event

    Declaration
    protected override void OnTextBoxKeyUp(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.KeyEventArgs e

    contains the event data

    Overrides
    ComboBoxBaseDataBound.OnTextBoxKeyUp(KeyEventArgs)

    ProcessDDMouseDown()

    Declaration
    protected override void ProcessDDMouseDown()
    Overrides
    ComboDropDown.ProcessDDMouseDown()

    RaiseThemeChanged(Object, ThemeChangedEventArgs)

    Raises the ThemeNameChanged event when theme name changed.

    Declaration
    protected virtual void RaiseThemeChanged(object sender, ThemeChangedEventArgs args)
    Parameters
    Type Name Description
    System.Object sender

    The sender value.

    ThemeChangedEventArgs args

    A ThemeChangedEventArgs contains the event data.

    SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

    Declaration
    protected override void SetBoundsCore(int x, int y, int width, int height, BoundsSpecified specified)
    Parameters
    Type Name Description
    System.Int32 x
    System.Int32 y
    System.Int32 width
    System.Int32 height
    System.Windows.Forms.BoundsSpecified specified
    Overrides
    ComboDropDown.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

    SetItemsCore(IList)

    Declaration
    protected override void SetItemsCore(IList items)
    Parameters
    Type Name Description
    System.Collections.IList items
    Overrides
    ComboBoxBaseDataBound.SetItemsCore(IList)

    UpdateListBoxBorderStyle()

    Updates the list box border style.

    Declaration
    protected override void UpdateListBoxBorderStyle()
    Overrides
    ComboBoxBaseDataBound.UpdateListBoxBorderStyle()

    UpdateText(Boolean)

    Updates the Text property based on the PopupControl's selected value.

    Declaration
    public override bool UpdateText(bool fireEvent)
    Parameters
    Type Name Description
    System.Boolean fireEvent

    Indicates whether the event should be fired if the text is changed.

    Returns
    Type Description
    System.Boolean

    True if the event was fired; False otherwise.

    Overrides
    ComboDropDown.UpdateText(Boolean)
    Remarks

    You normally do not have to call this method. However when you programmatically update the SelectedValue of a plug in the list control, you might have to call this method to update the combo's text based on that new value.

    WndProc(ref Message)

    Declaration
    protected override void WndProc(ref Message m)
    Parameters
    Type Name Description
    System.Windows.Forms.Message m
    Overrides
    ComboBoxBase.WndProc(ref Message)

    Events

    ThemeNameChanged

    Occurs when theme name of the control has changed.

    Declaration
    public event ThemeChangedEventHandler ThemeNameChanged
    Event Type
    Type Description
    ThemeChangedEventHandler

    Explicit Interface Implementations

    IVisualStyle.VisualTheme

    Gets or sets the VisualTheme of the control.

    Declaration
    string IVisualStyle.VisualTheme { get; set; }
    Returns
    Type Description
    System.String

    IThemeProvider.BaseThemeName

    Gets or sets the BaseTheme name of the theme

    Declaration
    string IThemeProvider.BaseThemeName { get; set; }
    Returns
    Type Description
    System.String

    IThemeProvider.ControlName

    Gets the name of the control.

    Declaration
    string IThemeProvider.ControlName { get; }
    Returns
    Type Description
    System.String

    Implements

    IThemedControl
    System.ComponentModel.ISupportInitialize
    INonClientPaintingSupport
    ISupportOffice2007Theme
    IThemeProvider
    IVisualStyle
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved