Hi,
We are using a GridView, and I am having difficulty getting the column widths to work how I think they should. It seems like it should be simple.
I am reading the widths from a config file as a double and calling a converter, and want to save them out there when the app closes. This is pretty simple. The issue is that if I bind the column width to the config setting, it gets overwritten as soon as resize happens (but I do get the calls to resize), I believe because ColumnWidth is set to sizeToHeader for the grid. If I put the binding on the header, I don't seem to get a notification (my converter isn't called) when the column is resized. I am simply looking for the correct method of setting this up so that when the column is resized, I get notified, and my headers and columns stay in sync. Let me know if a code sample would help.
Thanks,
Anthony.
We are using a GridView, and I am having difficulty getting the column widths to work how I think they should. It seems like it should be simple.
I am reading the widths from a config file as a double and calling a converter, and want to save them out there when the app closes. This is pretty simple. The issue is that if I bind the column width to the config setting, it gets overwritten as soon as resize happens (but I do get the calls to resize), I believe because ColumnWidth is set to sizeToHeader for the grid. If I put the binding on the header, I don't seem to get a notification (my converter isn't called) when the column is resized. I am simply looking for the correct method of setting this up so that when the column is resized, I get notified, and my headers and columns stay in sync. Let me know if a code sample would help.
Thanks,
Anthony.