We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to change the SelectionMode for selecting an item in the Autocomplete control?

Platform: WPF |
Control: AutoComplete |
.NET Framework: 4.5

Autocomplete control selection mode for selecting items can be set by using the SelectionMode Property. By using this property, the autocomplete Selection mode can be changed as Single, Multiple, Extended.

When the SelectionMode property is set as Single, you can select only one item at a time. Multiple mode allows you to select multiple items by using the SeparatorCharacter and Extented allows you to select multiple items by pressing the Ctrl key.

Refer to the following code examples.


//Explains how to set the Different SlectionMode in SelectedItem in the AutoComplete Control
<Window x:Class="AutoComplete.MainWindow"
        Title="MainWindow" Height="350" Width="525">
         <syncfusion:AutoComplete x:Name="Autocomplete" SelectionMode="Extended" HorizontalAlignment="Center" Height="40" DisplayMemberPath="item"  VerticalAlignment="Top" Width="150" Margin="176,125,177,0"  >



//Explains How to set the Different SlectionMode in Selected Item in the AutoComplete Control
namespace AutoComplete
    public partial class MainWindow : Window
        AutoCompleteList obj = new AutoCompleteList();
        public MainWindow()
            Autocomplete.CustomSource = obj;
            Autocomplete.SelectionMode = SelectionMode.Extended;
    public class AutomComp
        public string item { get; set; }
    public class AutoCompleteList : List<AutomComp>
        public AutoCompleteList()
            this.Add(new AutomComp() { item = "item 1" });
            this.Add(new AutomComp() { item = "item 2" });
            this.Add(new AutomComp() { item = "item 3" });
            this.Add(new AutomComp() { item = "item 4" });
            this.Add(new AutomComp() { item = "item 5" });
            this.Add(new AutomComp() { item = "item 6" });



The following screenshot displays the different types of SelectionMode  in the AutoComplete control.










2X faster development

The ultimate WPF UI toolkit to boost your development speed.
You must log in to leave a comment

Please sign in to access our KB

This page will automatically be redirected to the sign-in page in 10 seconds.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile