<h1>
    Auto-Size Columns
</h1>
<p>
    This grid automatically resizes columns to fit their content.
    It does this by calling the <b>autoSizeColumns</b> method
    in response to events that affect the content size.
</p>
@(Html.C1().FlexGrid().Id("theGrid").Height(300)
    .AllowResizing(C1.Web.Mvc.Grid.AllowResizing.None)
    .AutoGenerateColumns(false)
    .Columns(cs=>
    {
        cs.Add().Binding("id").Header("ID").MinWidth(60).IsReadOnly(true);
        cs.Add().Binding("countries").Header("Countries");
        cs.Add().Binding("sales").Header("Sales").MinWidth(80);
        cs.Add().Binding("expenses").Header("Expenses").MinWidth(80);
    })
)