Hi Zia,
We appreciate you providing an exact query, which makes it
easier for us to solve this issue. Based on your information, you are binding
the same set of columns to two different DataGrids. When dragging columns in
DataGrid1, the columns in DataGrid2 do not resize properly. This occurs because
resizing a column in DataGrid1 refreshes the GridColumnSizer correctly, but
DataGrid2 does not resize properly because it shares the same set of columns
but not the same widths. So, while the column in DataGrid2 changes, its width
does not.
To resolve this, you need to refresh the GridColumnSizer for
both DataGrid1 and DataGrid2 in the column’s changed event. Specifically, call
the Refresh method on the GridColumnSizer for each DataGrid whenever a column
is resized. This ensures that both DataGrids maintain the correct column sizes
in sync with each other.
We have resolved the reported issue and modified your
workaround based on your requirements. Please review the updated solution
below. If you need further assistance, feel free to let us know. We are happy
to help.
Thanks for your understanding and cooperation.
Best Regards,
Gokul S
Attachment:
Ticket191619_e96b7a71.zip