# AutoExpandSelection

Develop powerful and lightweight web applications using ASP.NET MVC controls. Learn more about the ComponentOne MVC controls in ASP.NET MVC documentation.

## Content



You can use the AutoExpandSelection property to specify whether DropDown control automatically fills the text box portion of a combo box with a value from the combo box list that matches the characters you enter as you type in the combo box.


> type=note
> **Note**: In case of **InputColor** and **InputDate** control, the default value of AutoExpandSelection property is set to **True**. For all the other Input controls the default value is False.

AutoExpandSelection property is available in the following Input DropDown controls;

*   InputColor
*   InputDate
*   AutoComplete, ComboBox
*   InputTime

The following code example demonstrates how to use AutoExpandSelection in the Input control.

**IndexController.cs**

```razor
public ActionResult Index()
  {
ViewBag.Cities = Models.Cities.GetCities();
return View();
   }
```

<br />**Index.cshtml**

```razor
@using C1.Web.Mvc;
@{
List<string> cities = ViewBag.Cities;
}
@(Html.C1().ComboBox().Bind(cities).SelectedIndex(0)
.AutoExpandSelection(true))
```