I need to set the last column of a DataGrid to be 100% of remaining width.
When defining a DataGrid using XAML, I do this:
<DataGridTextColumn Header="Name" IsReadOnly="True" Width="*" />
But I have some situation that I'm using c# code to create the columns.
How to set the width of a column to be something like:
myColumn.Width = *; ?