title: HowTo define the "Auto" Width of the WPF GridView Column in Code?
body: <p>I want to define the "Auto" width of a GridView Column in the code. How can I do that?</p>
  
  <pre><code>var grid = (GridView)myListview.View;
  grid.Columns.Add(new GridViewColumn
  {
     Header = "My Header",
     DisplayMemberBinding = new Binding("MyBinding"),
     Width = ??? // Auto
  });
  </code></pre>