Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1770
Sizing of xamDataGrid to ContentPane
posted

I believe this has been asked a few times but the solution to this evades me. I have a xamdatagrid inside a contentpane. I would like the xamdatagrid to keep to the size of the content pane no matter how many columns. What happens now is that it pushes the content pane (makes the width bigger) and scroll bars appear on the application window not the data grid. i would like scroll bars to appear on the content pane. I did put ScrollViewer> around the xamdatagrid and content pane but it has not effect.

Thanks.