Q: WPF DataGrid can't reproduce WindowsForms datagrid resizing behaviour I'm looking over the web to reproduce a behaviour that I used almost every time in windows forms:
Columns resize to allow content to fit, if there isn't enough space a scrollbar appear.
If I, for example, maximize the window which will allow me to have more space than what is required, the columns resize to fill all that space.
How to achieve this? Is this possible?

A: Use star Width
 <ColumnDefinition Width="1*"/>
 <ColumnDefinition Width="1*"/>

You can set the priority with the number. 
 <ColumnDefinition Width="3*"/>
 <ColumnDefinition Width="1*"/>

the first column is 3 times the second one. 

A: This is not possible without passing through code, I tested it in thousands ways and I couldn't find a solution without passing through C# code.
