@model IEnumerable<FlexGridData.Sale>

<h1>
    Selection Events
</h1>
<p>
    FlexGrid's <b>selection</b> property returns a
    <b>CellRange</b> object that contains the range of
    selected cells.
</p>
<p>
    When the selection changes, the grid raises the
    <b>selectionChanging</b> and <b>selectionChanged</b>
    events.
</p>
<p>
    The grid below uses the <b>selectionChanged</b>
    event to show a summary of the data selected.
</p>
<div id="log">
    please select a range on the grid
</div>
@Html.C1().FlexGrid().Id("theGrid").Bind(Model).GroupBy("Country").Height(220)