title: How to put vertical lines for listviewitem in WPF
body: <p>I am trying put vertical lines between the columns in ListViewItem. I Tried the solutions given. But its not working. Can anybody help me in solving this. I have created a separate style for ListViewItem. Do i need to add some property in the styles?</p>
  
  <p>The code is like this</p>
  
  <pre><code>&lt;ListView x:Key="ListView1" ItemContainerStyle="{DynamicResource ListViewItemStyle1}"&gt;
  &lt;ListView.View&gt;
      &lt;GridView&gt;
          &lt;GridViewColumn Header="{TemplateBinding GridView.ColumnCollection}"&gt;
              &lt;GridViewColumn.CellTemplate&gt;
                  &lt;DataTemplate&gt;
                      &lt;Border BorderBrush="#FF000000" BorderThickness="1,0,0,0" Margin="-6,-2,-6,-2"&gt;
                          &lt;StackPanel Margin="6,2,6,2"&gt;
                              &lt;TextBlock Text="{TemplateBinding Content}"/&gt;
                          &lt;/StackPanel&gt;
                       &lt;/Border&gt;
                  &lt;/DataTemplate&gt;
              &lt;/GridViewColumn.CellTemplate&gt;
          &lt;/GridViewColumn&gt;
      &lt;/GridView&gt;
  &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>literally it should work, but its not working. I am not able add vertical lines using above code..</p>