First, look at the width of the last column. It is "*".
Here's the xaml to reproduce the problem:
<Window x:Class="DataGridStaredColumnTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:System="clr-namespace:System;assembly=mscorlib" Title="MainWindow" Height="350" Width="525">
<Grid>
<ScrollViewer HorizontalScrollBarVisibility="Auto">
<Grid MinWidth="200" HorizontalAlignment="Stretch">
<DataGrid AutoGenerateColumns="False" HorizontalAlignment="Stretch">
<DataGrid.Columns>
<DataGridTemplateColumn Header="1" Width="Auto">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBlock Text="Column1" Background="Green"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
<DataGridTemplateColumn Header="2" Width="*">
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<TextBox Text="Column2" Background="Yellow" HorizontalAlignment="Stretch"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
</DataGrid.Columns>
<DataGrid.Items>
<System:Int16>1</System:Int16>
<System:Int16>2</System:Int16>
<System:Int16>3</System:Int16>
</DataGrid.Items>
</DataGrid>
</Grid>
</ScrollViewer>
</Grid>
</Window>
There's definitely some poblem with the scrollviewer here cause everything works fine if HorizontalScrollbar is disabled.
I found this post concernign the problem. Nevertheless the solution contains another bug of evergrowing Border after window is enlareged.
Does anybody have an idea how to kill this extra column?