<h1>
    Custom Editors
</h1>
<p>
    Although FlexGrid provides efficient, Excel-style
    editing by default, you may want to customize the
    editing behavior.
</p>
<p>
    This example defines a <b>CustomGridEditor</b> class
    that allows any Wijmo control to be used as a grid
    editor:
</p>
@(Html.C1().FlexGrid().Id("theGrid")
    .AutoGenerateColumns(false)
    .Columns(cs=>
    {
        cs.Add().Binding("id").Header("ID").Width("40").IsReadOnly(true);
        cs.Add().Binding("date").Header("Date").Format("d");
        cs.Add().Binding("time").Header("Time").Format("t");
        cs.Add().Binding("country").Header("Country");
        cs.Add().Binding("product").Header("Product");
        cs.Add().Binding("amount").Header("Amount").Format("n2");
    })
)