# Key Properties

The purpose of this help article is to show you the key properties of the **RadUniformGrid** control.

> You can access the **RadUniformGrid** control through an alias pointing to the **Telerik.UI.Xaml.Controls.Primitives** namespace: `xmlns:primitives="using:Telerik.UI.Xaml.Controls.Primitives"`

## Rows and Columns

Through the **Rows** and **Columns** properties you can control the size of the grid. Any additional children that can't fit in the number of cells provided won't be displayed.

#### **Example 1: Setting Rows and Columns**

```XAML
<primitives:RadUniformGrid Rows="2" Columns="2">
	
</primitives:RadUniformGrid>
```

In the figure below you can notice that the 5th and 6th borders are not displayed.

![WinUI Setting Rows and Columns](https://www.telerik.com/winui/documentation/assets/671074e0913ecf9229dacc78d479c2a8/uniformgrid-key-properties-0.png)

## HideFirstRow and HideFirstColumn

Through the **HideFirstRow** and **HideFirstColumn** properties you can control whether the first row or column of the grid should remain hidden.

#### **Example 2: Setting HideFirstRow and HideFirstColumn**

```XAML
<primitives:RadUniformGrid HideFirstRow="True" HideFirstColumn="True">
	
</primitives:RadUniformGrid>
```

Check the result below:

![WinUI HideFirstRow and HideFirstColumn](https://www.telerik.com/winui/documentation/assets/062b0c3cab7db4fdc15f167b157b3f7b/uniformgrid-key-properties-1.png)

## First Column

Through the **FirstColumn** property you can control the starting column offset for the first row of the UniformGrid.

#### **Example 3: Setting FirstColumn**

```XAML
<primitives:RadUniformGrid FirstColumn="2">
	
</primitives:RadUniformGrid>
```

Check the result below:

![WinUI First Column](https://www.telerik.com/winui/documentation/assets/8bd6e05a8598981fd3ef0607ab8e71d0/uniformgrid-key-properties-2.png)

## ChildrenFlow

Through the **ChildrenFlow** property you can control the orientation of the grid. When set to **Orientation.Vertical**, it will transpose the layout of automatically arranged items such that they start from top to bottom then based on the **FlowDirection**.

#### **Example 4: Setting ChildrenFlow**

```XAML
<primitives:RadUniformGrid ChildrenFlow="Vertical">
	
</primitives:RadUniformGrid>
```

Check the result below:

![WinUI ChildrenFlow](https://www.telerik.com/winui/documentation/assets/5451282fd0e7cda695d9e9dc79cede9f/uniformgrid-key-properties-3.png)

## PreserveSpaceForCollapsedChildren

By default, if one of the child elements of the RadUniformGrid has its Visibility property set to **Collapsed**, the space for it will not be preserved and the next child will be drawn in its place.

Through the **PreserveSpaceForCollapsedChildren** property you can change this behavior so that the place for the collapsed element is preserved.

#### **Example 5: Setting PreserveSpaceForCollapsedChildren**

```XAML
<primitives:RadUniformGrid PreserveSpaceForCollapsedChildren="True">
	
</primitives:RadUniformGrid>
```

Check the result below:

![WinUI PreserveSpaceForCollapsedChildren](https://www.telerik.com/winui/documentation/assets/fdceb87a850a17cfac512c906e0658a1/uniformgrid-key-properties-4.png)

## See Also

* [Getting Started](https://www.telerik.com/winui/documentation/controls/raduniformgrid/getting-started)
