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