title: DataGrid columns auto width
body: <p>I set up <code>DataGrid</code> where should all columns excepts one have size by its content. So I set these columns to <code>auto</code> and the other one to <code>*</code>. But DataGrid ignores it and content in column with header <code>Množ</code> is not completely visible.</p>
  
  <pre><code>&lt;DataGrid Name="dataGrid" Margin="1" Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3" 
            VerticalAlignment="Stretch" HorizontalAlignment="Stretch" MouseDoubleClick="dataGrid_MouseDoubleClick"
            ItemsSource="{Binding RadkyDokladu.radky}" CanUserSortColumns="False" PreviewKeyDown="dataGrid_PreviewKeyDown"
            AutoGenerateColumns="False" IsReadOnly="True" FontSize="12" SelectionMode="Single" &gt;
      &lt;DataGrid.ColumnHeaderStyle&gt;
          &lt;Style TargetType="{x:Type DataGridColumnHeader}"&gt;
              &lt;Setter Property="FontSize" Value="12"/&gt;
          &lt;/Style&gt;
      &lt;/DataGrid.ColumnHeaderStyle&gt;
      &lt;DataGrid.Columns&gt;
          &lt;DataGridCheckBoxColumn Header="" Binding="{Binding ZASKRTNUTO}" Width="auto" /&gt;
          &lt;DataGridTextColumn Header="Náz" Binding="{Binding Artikl_NAME}" MinWidth="10" Width="*"/&gt;
          &lt;DataGridTextColumn Header="Místo" Binding="{Binding Umisteni_NAME}" Width="auto"/&gt;
          &lt;DataGridTextColumn Header="Množ" Binding="{Binding Mnozstvi, StringFormat=F2}" Width="auto"&gt;
              &lt;DataGridTextColumn.ElementStyle&gt;
                  &lt;Style TargetType="TextBlock"&gt;
                      &lt;Setter Property="HorizontalAlignment" Value="Right" /&gt;
                  &lt;/Style&gt;
              &lt;/DataGridTextColumn.ElementStyle&gt;
          &lt;/DataGridTextColumn&gt;
          &lt;DataGridTextColumn Header="MJ" Binding="{Binding Jednotka}"  Width="auto"/&gt;
      &lt;/DataGrid.Columns&gt;
  &lt;/DataGrid&gt;
  </code></pre>
  
  <p>Image after run:
  <a href="https://i.stack.imgur.com/Gku2j.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Gku2j.png" alt="image"></a></p>
  
  <p>Is something wrong with my code?</p>