FlexGrid allows you to show a new row template at the top or bottom of the grid using NewRowPosition property, which takes values from the GridNewRowPosition enumeration. You can control the text to be displayed to a user by setting the NewRowPlaceHolder 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.
The following code example demonstrates how to set this property in C#. The example uses the sample created in the Quick start section.
C# |
Copy Code
|
---|---|
grid.NewRowPosition = GridNewRowPosition.Top;
grid.NewRowPlaceholder = "Tap to begin entering a new row";
|