ComponentOne Input for WinForms
Using the C1Input Controls / C1Input Controls / C1ComboBox Control Overview / ComboBox Item Modes
In This Topic
    ComboBox Item Modes
    In This Topic

    You can use the ItemMode property to build item presentation.

    There are three options which include the following:

    Default

    In the default option, each C1ComboBoxItem is a string and can also be an image.

    The following image illustrates a C1ComboBox with the Default option:

    comboboxdefault

    For an example see the ComboBoxImages sample.

    HtmlPattern

    In the HtmlPattern, each item is built from a HTML pattern and bound item data.

    The following image illustrates a C1ComboBox with the HtmlPattern:

    comboboxhtml

    The HtmlPattern used above is set to the following: <table><tr><td>Country:</td><td><b>{Text}</b></td></tr><tr><td align="right">Flag:</td><td><img src='{Text}'></td></tr></table>

    For an example see the ComboBoxItemModes sample.

    Html

    In the Html option, each item is a fragment of a HTML subset.

    The following image illustrates a C1ComboBox with the Html option:

    comboboxhtmlpattern

    The Html used above is set to the following:

    For an example see the ComboBoxItemModes sample.

    See Also