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.
Thanks for checking. I've resolved my issue based on your feedback.
Hello Kris,
Just checking in, did you have any other questions or concerns on this matter?
Sincerely,AndrewDeveloper Support Engineer IInfragistics Inc.www.infragistics.com/support
To have the XamDataGrid size to the ContentPane no matter how many columns there are in the grid, I would recommend that you set the AutoFit property of the XamDataGrid to True. The AutoFit property gets and sets whether the cells and labels will be sized to the grid's housing control without the need to scroll.
Regarding the scroll bars on the content pane, there was another community member who had a very similar question. You can see that question and the resolution to it on the forum thread at this link: http://ko.infragistics.com/community/forums/t/30185.aspx.
Please let me know if you have any other questions or concerns on this matter.