title: GridViewColumn Width Adjustment
body: <p>My UI: </p>
  
  <pre><code>&lt;ListView Name="persons" SelectionChanged="persons_SelectionChanged"&gt;
          &lt;ListView.View&gt;
              &lt;GridView AllowsColumnReorder="False"&gt;
                  &lt;GridViewColumn Header="Name" DisplayMemberBinding="{Binding Name}" Width="auto"/&gt;
                  &lt;GridViewColumn Header="Age" DisplayMemberBinding="{Binding Age}" Width="auto"/&gt;
              &lt;/GridView&gt;
          &lt;/ListView.View&gt;
      &lt;/ListView&gt;
  </code></pre>
  
  <p>The Codebehind of my UI:</p>
  
  <pre><code>internal void Update(IEnumerable&lt;Person&gt; pers)
      {
          this.persons.ItemsSource = null;
          this.persons.ItemsSource = pers;
          UpdateLayout();
      }
  </code></pre>
  
  <p>My Entities:</p>
  
  <pre><code>class Person
  {
     public string Name { get; set; }
     public int Age { get; set; }
  }
  </code></pre>
  
  <p>The GridViewColumns have the width of the GridViewColumn-Header. Even if i call Update() with Persons with a long name. The Column does not get resized.</p>
  
  <p>a) How can i resize the "Name"-column automatically (when i called Update) to the length of the longest Name, but not longer than a Value x (i want to specify a maximum width of a column)?</p>
  
  <p>b) How can i specify that the "Age"-Column fills the space to the control´s end (so that the columns of the gridview uses the complete width of the control)?</p>