Hello,
I believe I've run into another breaking change with the Q1 2009 version of the grid. In my app I have some functionality where the user can define some of the properties of a grid, one of them being the column widths. When the user is looking at some data in the grid and they resize a column I need to update by business object so that I can display the grid with the same widths the next time.
In the previous version I accomplished this by having a two way binding between the Width property of a grid column and a width property on my business object (using a converter to translate back and forth between a numeric value and a GridLength). This worked perfectly as every time the user changed a column width my object was updated.
In the Q109 version, resizing a column doesn't seem to update the column width anymore so my object never gets updated. The only time the width gets updated is when you double click in the header to make the column fit the contents. This also has the unfortunate side effect of setting the column with to Auto and the value to 1, which is not desired. I would expect that the column would be resized, but the mode stay in Pixel mode like it used to.
Is there any way to get the grid to behave like it used to? If not, can someone please suggest a way for me to know when a column gets resized and then get the actual width of the column? I had a similar post a while back but that method doesn't seem to work anymore either.
Thanks,
Joel
I believe I've run into another breaking change with the Q1 2009 version of the grid. In my app I have some functionality where the user can define some of the properties of a grid, one of them being the column widths. When the user is looking at some data in the grid and they resize a column I need to update by business object so that I can display the grid with the same widths the next time.
In the previous version I accomplished this by having a two way binding between the Width property of a grid column and a width property on my business object (using a converter to translate back and forth between a numeric value and a GridLength). This worked perfectly as every time the user changed a column width my object was updated.
In the Q109 version, resizing a column doesn't seem to update the column width anymore so my object never gets updated. The only time the width gets updated is when you double click in the header to make the column fit the contents. This also has the unfortunate side effect of setting the column with to Auto and the value to 1, which is not desired. I would expect that the column would be resized, but the mode stay in Pixel mode like it used to.
Is there any way to get the grid to behave like it used to? If not, can someone please suggest a way for me to know when a column gets resized and then get the actual width of the column? I had a similar post a while back but that method doesn't seem to work anymore either.
Thanks,
Joel