---
title: "Bottom borders issue using WPF Grid"  
description: "Bottom borders issue using WPF Grid"  
author: "Aaron Douglas"  
published: 2013-10-14  
updated: 2013-10-14  
canonical: https://www.mindstick.com/forum/1680/bottom-borders-issue-using-wpf-grid  
category: "wpf"  
tags: ["wpf"]  
reading_time: 2 minutes  

---

# Bottom borders issue using WPF Grid

I'd like to set a bottom border on each [row](https://www.mindstick.com/forum/1212/this-row-already-belongs-to-this-table) in the [grid](https://www.mindstick.com/forum/369/how-can-i-add-a-column-name-to-my-grid), but can only find how to [put](https://answers.mindstick.com/qa/111890/can-you-explain-the-difference-between-put-and-post-http-methods) all 4 borders around each cell.. my [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii) is quite [simple](https://yourviews.mindstick.com/story/1469/5-simple-ways-to-stay-fit-amp-healthy)

```
<Grid Height="174" HorizontalAlignment="Left" Margin="23,289,0,0" Name="grid2" VerticalAlignment="Top" Width="730">
    <Grid.RowDefinitions>
        <RowDefinition Height="45" />
        <RowDefinition Height="25" />
        <RowDefinition Height="25" />
        <RowDefinition Height="25" />
        <RowDefinition Height="25" />
        <RowDefinition Height="25" />
    </Grid.RowDefinitions>
    <Grid.ColumnDefinitions>
        <ColumnDefinition Width="255" />
        <ColumnDefinition Width="95" />
        <ColumnDefinition Width="95" />
        <ColumnDefinition Width="95" />
        <ColumnDefinition Width="95" />
        <ColumnDefinition Width="95" />
    </Grid.ColumnDefinitions>
</Grid>
```

For another grid I'm using that needs all four borders, I'm using

```
<Border Grid.Column="0" Grid.Row="0" BorderBrush="#61738B" BorderThickness="1" />
```

P.S. The contents of the grid are some [labels](https://www.mindstick.com/forum/34568/badges-labels-page-headers), textboxes, etc.. if that matters at all.

Appreciate any pointers.

## Replies

### Reply by Anonymous User

I had luck putting a bottom border on a whole row by including a Border Node with BorderThickness="0 1 0 1" surrounding the Grid Node. Like this:

```
Border Style="{StaticResource ItemBorderStyle}" BorderThickness="0 1 0 1"           
Grid Style="{StaticResource GridItemStyle}"
```


---

Original Source: https://www.mindstick.com/forum/1680/bottom-borders-issue-using-wpf-grid

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
