How to make a wpf datagrid fill all available space and resize with window? Mind that the datagrid is inside a grid.
You should be able to do it for a datagrid (or for any WPF control) by setting HorizontalAlignment
and VerticalAlignment
to Stretch
If it's inside a Grid, you should be able to set something like this
<Grid> <!-- parent grid or whatever --> <DataGrid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" ... > </DataGrid> </Grid>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With