XAML
<DataGridTemplateColumn Header="Range" Width="100'*">
Or Code behind:
Or Code behind:
// make
the last column in WPF data grid take all the left space, always
dataGrid.Columns[dataGrid.Columns.Count
- 1].Width = new DataGridLength(1, DataGridLengthUnitType.Star);