To accommodate what we want with horizontal scrolling, I turned off AutoFit on a XamDataGrid. When I do that, the top and bottom lines from the header row extend from the right of the last column as shown in the attached picture.
How can I hide those from showing?
Hello Walter and thank you for posting!
XamDataGrid fits the available space. When the fields are not wide enough (their widths are set to smaller value) a field that fill the rest of the space is displayed. You can modify this behavior by setting the width of the grid to a smaller value that corresponds to the sum of the widths of all the visible fields. Another approach is to set AutoFitMode of the FieldLayoutSettings to ExtendLastField.I hope this is helpful. If you need further assistance, do not hesitate to ask.
I was able to make the behavior as I wanted it by wrapping the XamDataGrid in a Grid and setting the Grid's HorizontalAlignment to Left and the XamDataGrid's AutoFit to false.
Hello Walter,
This approach could be helpful for other community members as well. Thank you for sharing it!