I have a GUI which looks like this:
<UserControl>
<ScrollViewer>
<Grid>
<dxg:GridControl>
</dxg:GridControl>
</Grid>
</ScrollViewer>
</UserControl>
The user control is in a ContentControl on my MainWdow.xaml. I would like the Grid to take the whole space available in the window and I would like the GridControl (devExpress) to not expand beyond the grid's height
Right now, I need to set a MaxHeight on the GridControl otherwise Devexpress throws an exception. If I put this MaxHeight to let's say 1500, the gridControl's height turns out to be greater than the Grid container and this latter resizes to accomodate the former.
I would like the grid to take as much space as possible without needing to show vertical scrollbar, and I would like the GridControl inside to take as much height possible within this Grid container and show a vertical scrollbar.
I can't for the life of me find a solution. Can you please suggest something?