@model IEnumerable<Gdp>

<h1>
    Sorting and Filtering Items
</h1>
<p>
    When you set the <b>itemsSource</b> property to an array
    of objects, the ComboBox automatically creates a
    <b>CollectionView</b> and exposes that through its
    <b>collectionView</b> property.
</p>
<p>
    You can use the collection view to filter and sort
    the data, and you can use the view's <b>currentItem</b>
    instead of the combo's <b>selectedItem</b>:
</p>

<label for="theCombo">Select an item:</label>
@(Html.C1().ComboBox<Gdp>().Id("theCombo").Bind(Model).DisplayMemberPath("Country"))
<p id="detail"></p>