title: WPF ListView GridView DisplayMemberBinding Center alignin content
body: <p>I'm trying to center align data in a ListView/Gridview where I use DisplayMemberBinding.</p>
  
  <p>This is (partially) how my gridview looks:</p>
  
  <pre><code>&lt;ListView&gt;
      &lt;ListView.View&gt;
          &lt;GridView&gt;
              &lt;GridView.Columns&gt;
                 &lt;GridViewColumn DisplayMemberBinding="{Binding Path=Timi}" Width="Auto"&gt;
                     &lt;GridViewColumnHeader Content="Tími" Click="GridViewColumnHeader_Click" &gt;&lt;/GridViewColumnHeader&gt;
                  &lt;/GridViewColumn&gt;
              &lt;/GridView.Columns&gt;
          &lt;/GridView&gt;
      &lt;/ListView.View&gt;
  &lt;/ListView&gt;
  </code></pre>
  
  <p>I tried to use CellTemplate like explained on this page
  <a href="http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumn.celltemplate.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/system.windows.controls.gridviewcolumn.celltemplate.aspx</a>
  but it didn't work and then later I read somewhere that one should never use cellTemplate and DisplayMemberBinding together.</p>
  
  <p>So the question is : How do I center the gridview data when I use DisplayMemberBinding to bind the data to the gridview?</p>
  
  <p>Thanks in advance.</p>