title: Freeze Columns ListView/GridView WPF
body: <p>I have a <code>ListView</code> which looks like this:</p>
  
  <pre><code>&lt;ScrollViewer HorizontalScrollBarVisibility="Auto"&gt;
      &lt;ListView&gt;
          &lt;ListView.View&gt;
              &lt;GridView&gt;
                  &lt;GridView.Columns&gt;
                  ...
                  &lt;/GridView.Columns&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
      &lt;/ListView&gt;
  &lt;/ScrollViewer&gt;
  </code></pre>
  
  <p>There are +-30 columns, so it's a very wide screen. When the user scrolls to the right, I still want him to know which column he's on. The first four columns contain that information (ID, name, ...), so I want to freeze these columns.</p>
  
  <p>Also, I'm using <a href="http://www.thomaslevesque.com/2009/08/04/wpf-automatically-sort-a-gridview-continued/" rel="nofollow noreferrer">GridViewSort</a> so using two <code>ListView</code>s will cause the sort to not work anymore.</p>
  
  <p>How can I achieve this?</p>