menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridComboBoxListBoxHelper - API Reference

    Show / Hide Table of Contents

    Class GridComboBoxListBoxHelper

    For internal use.

    Inheritance
    System.Object
    GridComboBoxListBoxHelper
    Namespace: Syncfusion.Windows.Forms.Grid
    Assembly: Syncfusion.Grid.Windows.dll
    Syntax
    public class GridComboBoxListBoxHelper : ListBox

    Constructors

    GridComboBoxListBoxHelper()

    Initializes the new instances of the GridComboBoxListBoxHelper class.

    Declaration
    public GridComboBoxListBoxHelper()

    Properties

    BindingContext

    Gets or sets the System.Windows.Forms.BindingContext for the control.

    Declaration
    public override BindingContext BindingContext { get; set; }
    Property Value
    Type Description
    System.Windows.Forms.BindingContext

    SelectedIndex

    Gets or sets the zero-based index of the currently selected item in a list box.

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

    Methods

    FindStringExact(String)

    For internal use. Finds the exact string.

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

    The text to search for.

    Returns
    Type Description
    System.Int32

    The zero-based index of the first item found; returns ListBox.NoMatches if no match is found.

    FindValue(Object)

    For internal use. Finds the value.

    Declaration
    public int FindValue(object value)
    Parameters
    Type Name Description
    System.Object value

    The value.

    Returns
    Type Description
    System.Int32

    returns the value

    GetItemCount()

    For internal use. Gets the collection's count.

    Declaration
    public int GetItemCount()
    Returns
    Type Description
    System.Int32

    returns the ItemCount.

    GetItemText(Int32)

    For internal use. Gets the item.

    Declaration
    public string GetItemText(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Returns
    Type Description
    System.String

    returns the ItemText

    GetItemText(Object)

    Returns the text representation of the specified item.

    Declaration
    public string GetItemText(object item)
    Parameters
    Type Name Description
    System.Object item

    The object from which to get the contents to display.

    Returns
    Type Description
    System.String

    If the System.Windows.Forms.ListControl.DisplayMember property is not specified, the value returned by System.Windows.Forms.ListControl.GetItemText(System.Object) is the value of the item's ToString method. Otherwise, the method returns the string value of the member specified in the System.Windows.Forms.ListControl.DisplayMember property for the object specified in the item parameter.

    GetItemValue(Int32)

    For internal use. Gets the filtered item and property.

    Declaration
    public object GetItemValue(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index.

    Returns
    Type Description
    System.Object

    returns the ItemValue

    GetItemValue(Object)

    For internal use.

    Declaration
    public object GetItemValue(object item)
    Parameters
    Type Name Description
    System.Object item

    The object instance.

    Returns
    Type Description
    System.Object

    returns the ItemValue

    OnCreateControl()

    Throws the exception.

    Declaration
    protected override void OnCreateControl()

    OnDataSourceChanged(EventArgs)

    Invoked when data source of the grid combo box has been changed.

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

    OnHandleDestroyed(EventArgs)

    Overridden to be sure that items are set up and cleared out correctly. Inheriting controls should call base.OnHandleDestroyed.

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

    SetItemCore(Int32, Object)

    Called the System.windows.Forms.ListBox.SetItemsCore method.

    Declaration
    protected override void SetItemCore(int index, object value)
    Parameters
    Type Name Description
    System.Int32 index
    System.Object value

    SetItemsCore(IList)

    Called the System.windows.Forms.ListBox.SetItemsCore method.

    Declaration
    protected override void SetItemsCore(IList items)
    Parameters
    Type Name Description
    System.Collections.IList items
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved