# Wordwrap

## Content



FlexGrid's WordWrap property allows a user to display multi-line text in a single cell of the grid. To enable word wrapping in a FlexGrid column, set the value of [WordWrap](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Grid/C1.Xamarin.Forms.Grid.GridColumn.WordWrap.html) property to **true**. By default, its value is set to **False**. The **WordWrap** property determines whether the grid should automatically break long strings containing multiple words and special characters such as spaces in multiple lines. Multiple line text can be displayed in both fixed and scrollable cells.

#### In Code

```csharp
//to enable word wrap
grid.Columns[1].WordWrap = true;
```

#### In XAML

```csharp
<c1:GridColumn Binding="Name" Width="Auto" WordWrap="True"/>
```

To resize the row heights automatically, you can then call the [AutoSizeRow](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Grid/C1.Xamarin.Forms.Grid.FlexGrid.AutoSizeRow.html) and [AutoSizeRows](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Grid/C1.Xamarin.Forms.Grid.FlexGrid.AutoSizeRows.html) methods as illustrated in the code below.

```csharp
// resize a single row
grid.AutoSizeRow(1);
// resize all rows
grid.AutoSizeRows(0, grid.Rows.Count – 1);
```