title: How i can add border to ListViewItem, ListView in GridView mode
body: <p>I want to have a border around ListViewItem (row in my case). ListView source and columns generated during Runtime. In XAML i have this structure:</p>
  
  <pre><code>&lt;ListView Name="listViewRaw"&gt;
     &lt;ListView.View&gt;
        &lt;GridView&gt;
        &lt;/GridView&gt;
     &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>During Runtime i bind listview to DataTable, adding necessary columns and bindings:</p>
  
  <pre><code>        var view = (listView.View as GridView);
          view.Columns.Clear();   
          for (int i = 0; i &lt; table.Columns.Count; i++)
          {
              GridViewColumn col = new GridViewColumn();
              col.Header = table.Columns[i].ColumnName;
              col.DisplayMemberBinding = new Binding(string.Format("[{0}]", i.ToString()));
              view.Columns.Add(col);
          }
  
          listView.CoerceValue(ListView.ItemsSourceProperty);
  
          listView.DataContext = table;
          listView.SetBinding(ListView.ItemsSourceProperty, new Binding());
  </code></pre>
  
  <p>So i want to add border around each row, and set border behavior (color etc) with DataTriggers (for example if value in 1st column = "Visible", set border color to black).
  Can i put border through DataTemplate in ItemTemplate? I know solution, where you manipulate with CellTemplates, but i don't really like it. I want something like this if this even possible.</p>
  
  <pre><code>&lt;DataTemplate&gt;
     &lt;Border Name="Border" BorderBrush="Transparent" BorderThickness="2"&gt;
        &lt;ListViewItemRow&gt;&lt;!-- Put my row here, but i ll know about table structure only during runtime --&gt;&lt;/ListViewItemRow&gt;
     &lt;/Border&gt;
  &lt;/DataTemplate&gt;
  </code></pre>