Hi!
My app allows the user to rearrange the columns as well as resize the column widths (driven by the interesting side effect that the moved column picks up the width of the column whose location it's moving into (i.e. if column 6 is originally 80 wide and column 2 is 20 wide and you move column 6 between column 1 and 2 it becomes 20 wide). However the SaveCustomizations does not save the widths. So I'm saving off the cellwidthresolved and labelwidthresolved properties separately and then restoring the saved customizations followed by the cellwidth and label width. I can see in the debugger that the widths are getting changed but the grid always shows the widths as calculated by the grid. I suspect that this has to do with using AutoFit=True (because I need the columns to use all of the grid width) and defining a DataRecordCellAreaGridTemplate | ItemsPanelTemplate | Grid with various widths specified for the columns (some specific, some 40*, 60*, etc.).
What is the correct combination of settings I need to set to achieve 100% grid width usage by the columns (no empty space on the right), moving and resizing of columns, and saving/restoring the grid to how the user left it?
Additionally is there a way to prevent certain columns from being moved or dropped between?
Thanks!
Glenn
Thanks Andrew! I thought I was posting to the xamDataGrid forum...I'll repost there.
I would recommend reposting this in one of the xamDataGrid related forums as this one is specific to xamDockManager but I'll try to answer what I can.
les122 said: I suspect that this has to do with using AutoFit=True (because I need the columns to use all of the grid width) and defining a DataRecordCellAreaGridTemplate | ItemsPanelTemplate | Grid with various widths specified for the columns (some specific, some 40*, 60*, etc.
les122 said: What is the correct combination of settings I need to set to achieve 100% grid width usage by the columns (no empty space on the right), moving and resizing of columns, and saving/restoring the grid to how the user left it?
les122 said: Additionally is there a way to prevent certain columns from being moved or dropped between?