MultiColumnCombo for WinForms
ユーザーインタラクション

MultiColumnCombo provides various features which allow end users to interact with the control. Let us discuss these features in detail in the following sections.

Allow Sorting

In MultiColumnCombo, sorting can be enabled in unbound mode by setting AllowSorting property of the C1MultiColumnCombo class to true. In this mode, the end user can sort a single column at runtime by clicking the column header using mouse as shown in the following GIF.

Sorting in MultiColumnCombo

To enable sorting using AllowSorting property, use the following code. This example uses the sample code from Unbound Mode.

C#
コードのコピー
mcc.AllowSorting = true;

Back to top

Allow Searching

MultiColumnCombo allows the end user to search an item from the MultiColumnCombo dropdown at runtime. This can be done by setting AllowSearching property of the C1MultiColumnCombo class to true. The AllowSearching property searches and highlights the matching text from the dropdown form.

The following image showcases the MultiColumnCombo control showing the search results at runtime.

Search performed in MultiColumnCombo control

To enable search in MultiColumnCombo, use the following code. The following code uses the sample code from Bound Mode.

C#
コードのコピー
mcc.AllowSearching = true;

Back to top

Auto Filtering

By default, MultiColumnCombo does not allow filtering at runtime. However, you can enable it by setting the AutoFiltering property to true. The AutoFiltering property determines whether to shorten the dropdown list of items by matching the text in the MultiColumnCombo after typing.

The following GIF shows filtering enabled in the MultiColumnCombo control.

Filtering performed in MultiColumnCombo control

The following code shows how to enable filtering in the MultiColumnCombo control. This example uses the sample code from Bound Mode.

C#
コードのコピー
mcc.AutoFiltering = true;

Using MultiColumnCombo, you can also use the search and filter features together for getting better search results in your application.

Back to top

AutoOpen

By default, the contents of the MultiColumnCombo dropdown are not visible, unless you press the drop-down arrow. However, you can change this behavior by setting the AutoOpen property to true. This property opens the dropdown control when the MultiColumnCombo receives focus.

The following code demonstrates the use of AutoOpen property to open the MultiColumnCombo dropdown.

C#
コードのコピー
mcc.AutoOpen = true;

Back to top