Check out example codes for "add row and columns to grid wpf in code". It will help you in understanding the concepts better.

Code Example 1

TheGrid.RowDefinitions.Add(new RowDefinition());
var uc = new MyUserControl();
TheGrid.Children.Add(uc);
Grid.SetRow(uc, TheGrid.RowDefinitions.Count - 1);

Learn ReactJs, React Native from akashmittal.com