# Column Widths

Set the widths of the Grid columns by using the `Width()` method.

## Using Column Widths and Scrolling

Depending on whether scrolling is enabled, the columns of the Grid acquire different behavior:

* By default, scrolling is enabled for the Grid in Kendo UI for jQuery. When scrolling is enabled:
  * The `table-layout` style is set to `fixed` and all columns without a defined width appear equally wide.
  * When the horizontal space is insufficient, columns without a defined width shrink to a zero width.
  * Regardless of the cell content, the defined column widths are obeyed.
  * If the content of a cell cannot fit, the Grid will either wrap or clip it.
  * During column resizing, only the resized column and the [`table`](https://docs.telerik.com/kendo-ui/api/ui/grid/fields/table) change width.
  * When a column is resized or hidden, the Grid applies a pixel width to its `table` elements. This behavior helps maintain the widths of all remaining columns except for the column that is currently resized or hidden.
  * When all columns have pixel widths and their sum exceeds the width of the Grid, a horizontal scrollbar appears.
  * When all columns have pixel widths and their sum is less than the width of the Grid, the column widths are ignored and the browser expands all columns.
* By default, scrolling is disabled for the Grid in UI for ASP.NET MVC and UI for ASP.NET MVC. When scrolling is disabled:
  * The `table-layout` style is set to `auto`. If not explicitly defined, the column widths are determined by the browser and by the cell content, which is the default behavior of HTML tables.
  * The browser will try to obey all column widths that are set but can adjust the widths of some columns depending on their content.

## Making Non-Scrollable Grids Obey Column Widths

Change the `table-layout` to `fixed`.

```CSS
#GridID > table { /* A header and data table. */
    table-layout: fixed;
}
```

## Removing Column and Header Misalignment

To remove the misalignment of the columns and headers when the Grid is resized, provide at least one column without a specified width so that it can freely adjust.

## KB Articles on Grid Column Widths

* [Auto Fit Column Width of the Grid for ASP.NET MVC](https://www.telerik.com/aspnet-mvc/documentation/knowledge-base/grid-autofit-all-columns-width)
* [Browse the Telerik UI Knowledge Base](https://www.telerik.com/aspnet-mvc/documentation/knowledge-base)

## See Also

* [Grid Server-Side API Reference](https://www.telerik.com/aspnet-mvc/documentation/api/grid)
