# Case-sensitive Search

## Content



By default, the search in ComboBox is case-insensitive. However, there might be a scenario where you need case-sensitive search in ComboBox. With case-sensitive search, ComboBox allows you to have more granular control over searched items. You can achieve the granularity in search by setting [CaseSensitiveSearch](/componentone/api/mvc/online-mvc-core/dotnet-api/C1.AspNetCore.Mvc/C1.Web.Mvc.ComboBoxBase-1.CaseSensitiveSearch.html) property of the **ComboBox** class to **true**. The **CaseSensitiveSearch** property determines whether the searches performed while the user types should be case-sensitive which makes the search more refined.

![ComboBox showing case-sensitive search from a list of cities](https://cdn.mescius.io/document-site-files/images/9b6a6cfe-b8e8-42e9-8a04-da6cb7762977/images/conbobox-search.gif)

The following example shows how you can use the case-sensitive search in the ComboBox control. The example uses Cities.cs model added in the [Quick Start](/componentone/docs/mvc/online-mvc-core/WorkingwithControls/Input/ComboBox/ComboBoxQuickStart) topic.

### Controller

```csharp
public IActionResult Index()
{
    return View();
}
```

### View for the Controller

```razor
@{List<string> cities = Cities.GetCities();}
    <div>
        <c1-combo-box selected-index=0 case-sensitive-search="true" is-editable="true">
            <c1-items-source source-collection="@cities"></c1-items-source>
        </c1-combo-box>
    </div>
```