<h1>
    Dynamic DataMaps (customize)
</h1>
<p>
    In some situations, you may want to change the data map used
    with a column depending on the value of another column.
    For example, you may want the drop-down in the 'City' column
    to show only cities in the country that is selected for the
    current row.
</p>
<p>
    The grid below does this by customizing the DataMap used for
    the "cities" column. The code overrides the city map's
    <b>getDisplayValues</b> method to return only cities that
    belong to the current country:
</p>
@(Html.C1().FlexGrid().Id("theGrid").Height(200)
    .AutoGenerateColumns(false)
    .Columns(cs=>
    {
        cs.Add().Binding("country").Header("Country");
        cs.Add().Binding("city").Header("City");
        cs.Add().Binding("downloads").Header("Downloads");
        cs.Add().Binding("sales").Header("Sales");
    })
)