DataGrid Columns Disappearing After Binding

Mar 6, 2009 at 9:51 PM
Hello Codeplex,

I am currently working with the WPF Data Grid on a project and I am having an issue. 

I have a DataGrid lying on an object editing window. If

If the list bound to the grid has no items in it, the column headers show normally.
Also, if the list has at least one item with the text that renders longer than the column header's width, then it shows it. 

Otherwise, apart of the DataGridHeaderBorder shows (ie the DataGridHeaderBorder is much smaller than it should be)

I have put it through Mole and seen that the headers Control exist, but they can not be shown becuase the DataGridHeaderBorder is too small.

Any ideas to why this is occuring?

Mar 9, 2009 at 3:53 PM
As an update I opened up Mole to see the property values.

I have 26.2 on the height of my DataGridColumnHeaders in the ItemsPresenter, but only 8 in the height of the DataGridColumnHeader that contains them.

I can create some screen shots if required.