add RowDefinition from cs xamarin code example
Example 1: add RowDefinition from cs xamarin
myGrid.RowDefinitions = new RowDefinitionCollection();
for (int myCount = 0; myCount < amoutOfRows; myCount++)
{
myGrid.RowDefinitions.Add(new RowDefinition { Height = new GridLength(1, GridUnitType.Star) });
}
Example 2: xamarin forms set the grid row property of an element programmatically
tblock.SetValue(Grid.RowProperty, 4);
Example 3: xamarin forms set the grid row property of an element programmatically
Grid.SetRow(tblock, 4);