Hello,
I put a datagrid in a window. The size of the window is smaller than the size of the datagrid, but there is no scrollbar turned on automatically.
How could I turn on the scrollbar?
Thanks.
Thanks. This resolved the scrollbar and cell merge problems.
Hi
There is a built-in way in the grid to achieve what you are doing. Please see the below blog post :-
http://blogs.infragistics.com/blogs/alex_fidanov/archive/2010/06/02/howto-common-headers-in-the-xamdatagrid.aspx
This should resolve your issue.
Please find the current screenshot attached. The screenshot is using some of your sample data.
As you can see from the screenshot, the horizontal scrollbar only applies to the datagrid. I need the group headings (ID, PersonalDetails, and PayPackage) to be sync with the labels. So, I need the horizontal scrollbar to apply to the group headings as well.
To have items overlay each other, you can either give them a negative margin, or apply a TranslateTransform in the RenderTransform property. So if you have an item above another in a Grid or StackPanel and you need it to overlay the item below it, give that item a negative bottom margin or offset the Y TranslateTransform with a positive number.
As far as the scrollbars and the XamDataGrid Group Headers issue, would you provide a screenshot of what you are seeing and what you wish the desired results to be?
Thank you!
Thanks for your reply.
I must use canvas, because I need to use overlay to make the group headings to rotate above the XamDataGrid. I found canvas is the only way to make overlay. If you know another solution, please let me know.
I have tried to hard code the Width and Height for the XamDataGrid, the scrollbars appeared for the XamDataGrid. But the scrollbars didn't apply to the group headings. I developed my group headings control, because I couldn't merge the cells in XamDataGrid. Is there any way to apply the scrollbars to both XamDataGrid and group headings?