DataGrid column width size incorrent with Auto and 'star'

Mar 19, 2009 at 10:48 PM
I have a DataGrid with columns where one column uses star width, and the others use Auto.  There's no data in the DataGrid initially.  The problem I'm having is that the columns using Width="Auto" are too small and cutting off the text of the column header.  If I were to grab the bottom-right corner of the app and resize it smaller, then back to the same size the columns adjust themselves to what I expected, all column widths take up exactly the space needed for the header text and the one star column takes up the rest.  When looking at the example project CommonDataGridAddOns, it appears to work correctly.

Has anyone seen this or does anyone know how to resolve this?  If it's of any use I made a sample project I can send that replicates this issue, if this is indeed an issue.

Mar 23, 2009 at 3:36 PM
I am facing a very similar problem with the size of Columns headers.
All my columns except the last one use Auto, the last one uses star width.
The Columns using Auto width are ok, they are shoen in correct size, but the last one using star width is to big for the window! The TextAlignment in this Column is set to right and I can't see the text inside it and a scrollbar is shown.
When I am not using the last column with star width and put star width into another column it is the same problem. The last column isn't visible.

Would be great if anyone can help us!
Mar 23, 2009 at 6:49 PM
Have you tried this out with the March release?  There were some known issues with * columns in the October and January releases and we've fixed them with the March release.  Could you try out the new bits and see if they fix the issue?  If not, please post an Issue in the Issue Tracker section and attach a repro, and we can take a look at it.

Mar 23, 2009 at 7:13 PM
Hi Samantha,

I just tried it with the March 2009 release and the problem is still present.  I created the issue in the issue tracker, work item 9588, with an example project and screenshot attached.

Mar 24, 2009 at 8:00 AM
Hi Samantha,

Thanks for the hint. Didn't know that there is already a March release.
I installed it and now I don't have the problem anymore.
Jun 1, 2009 at 4:25 AM
Edited Jun 1, 2009 at 4:33 AM

The problem still exists when parent container is star-sizing as well.