I am using DataGrids in XAML (not Silverlight) with resizable columns, the DataGrid will expand if the user resizes the screen.
Currently if the widths of all the DataGrid columns are less than the width of the DataGrid I get an extra "column" appearing which is unclickable and serves no purpose.
Does anyone know how to make one column always resize to fill all the remaining space?
Another spin on the same theme:
set ONE column's width to any value, i.e. width="*"
Make sure your DataGrid has
Width
set to something like{Binding Path=ActualWidth, RelativeSource={RelativeSource Mode=FindAncestor,AncestorType=Window,AncestorLevel=1}}
.Like that, your setting of
Width="*"
attribute onDataGrid.Columns/DataGridXXXXColumn
elements should work.