Using GridLenghts from code
If you want to add columns or rows by code, you can use the GridLength class to define the differenz types of sizes.
| Auto sized | GridLength.Auto |
| Star sized | new GridLength(1,GridUnitType.Star) |
| Fixed size | new GridLength(100,GridUnitType.Pixel) |