# Add New Row

## Content



FlexGrid allows you to show a new row template at the top or bottom of the grid using [NewRowPosition](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Grid/C1.Xamarin.Forms.Grid.FlexGrid.NewRowPosition.html) property, which takes values from the [GridNewRowPosition](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Grid/C1.Xamarin.Forms.Grid.GridNewRowPosition.html) enumeration. You can control the text to be displayed to a user by setting the [NewRowPlaceHolder](/componentone/api/xamarin/online-forms/dotnet-api/C1.Xamarin.Forms.Grid/C1.Xamarin.Forms.Grid.FlexGrid.NewRowPlaceholder.html) property. Users may use the new row template to add items to the grid's itemsSource collection.

The image below shows how the FlexGrid appears after adding the new row.

![](https://cdn.mescius.io/document-site-files/images/fb6b46a2-eac0-487c-84c3-5e1b4c7b1348/images/addingnewrow.png)

The following code example demonstrates how to set this property in C# and XAML. The example uses the sample created in the [Quick start](/componentone/docs/xamarin/online-forms/controls/OverviewFlexGrid/flexGridQuickStart) section.

#### In Code

```csharp
grid.NewRowPosition = GridNewRowPosition.Top;
grid.NewRowPlaceholder = "Tap to begin entering a new row";
```

#### In XAML

```xml
<c1:FlexGrid x:Name="grid" NewRowPosition="Top" NewRowPlaceholder="Tap to begin entering a new row"/>
```