# ReSize

## Content

## **Resize Beyond Grid Dimensions**

FlexGrid supports resizing rows and columns beyond the visible grid bounds to provide greater flexibility when displaying and editing data layouts.
Use the `allowResizing` property to configure how resizing is performed. By default, resizing is restricted to the grid boundaries.
To enable resizing beyond the grid dimensions, set the `allowResizing` property to one of the following `AllowResizing` enumeration values:

| Enumeration Value | Description |
| ----------------- | ----------- |
| `ColumnsOverflow` | Resizes columns beyond the grid bounds by dragging column header edges. |
| `ColumnsAllCellsOverflow` | Resizes columns beyond the grid bounds by dragging any cell edge. |
| `RowsOverflow` | Resizes rows beyond the grid bounds by dragging row header edges. |
| `RowsAllCellsOverflow` | Resizes rows beyond the grid bounds by dragging any cell edge. |
| `BothOverflow` | Resizes rows and columns beyond the grid bounds by dragging header edges. |
| `BothAllCellsOverflow` | Resizes rows and columns beyond the grid bounds by dragging any cell edge. |

The following example demonstrates how to set the `allowResizing` property to
 `BothAllCellsOverflow`.

### Controller

```auto
public ActionResult AllowResizing()
{
    return View(Sales.GetData(10));
}
```

### View

```auto
@using MVCFlexGrid.Models
@using C1.Web.Mvc.Grid
@model IEnumerable<Sale>
@(Html.C1().FlexGrid<Sale>()
    .AutoGenerateColumns(true)
    .CssClass("grid")
    .Bind(Model)
    .AllowResizing(AllowResizing.BothAllCellsOverflow)
)
```