Hi,
I am modifying existing WPF application which uses XamDataPresenter as grid on many forms. In one of the form grid should have second row of headers on a top of real column headers pair, and there are 7 such headers - for each day of week. Top header became narrow and text disappeared:
However, on the same form, on different tab, another XamDataPresenter displays data in similar way without any problem:
Both grid have similar settings, they use UnboundField for top headers:
<igDP:UnboundField Name="Monday" Column="0" ColumnSpan="2" Row="0" RowSpan="1"> <igDP:UnboundField.Settings> <igDP:FieldSettings CellContentAlignment="LabelOnly" /> </igDP:UnboundField.Settings> </igDP:UnboundField>
What could be a problem here ? Should I explicitly create style for LabelPresenter to fix it ?
Thanks,
Ed
Hello Ed,
Thank you for your post!
I have been looking into your issue and have created a small sample application, in order to test the issue, that you have reported. I was not able to reproduce it. I am attaching the sample application I have been testing with.
Would you please modify the attachment with the functionality you are using, so it shows the issue? This way I would be able to further investigate this issue for you.
Thank you for the cooperation. Looking forward to hearing from you.
Hi Gergana,
I fixed my initial problem just by changing order of fields in XAML. Previously all group headers were located at the beginning of the list in FieldLayout.Fields. When I rearranged them by column, height of group headers returned back to normal. However, some labels of group headers as well of some field headers just disappeared. For now grid looks like:
I tried to use a style as you did in test project and unfortunately it didn't help. I will try something else...
Thank you for the feedback. I have been looking into your issue. Would you please modify the sample application, that I have attached in my previous post with the functionality you are using, so it reproduces the issue? This way I would be able to further investigate this issue for you.
Thank you for the feedback. I am glad that you have found a solution to your issue. Please do not hesitate to let me know if you have any further questions on this matter.
I will try to create some sample to illustrate the issue. However I fixed it in my application by some really magic changes - I added several invisible dummy unbound fields to my grid and for some reason layout of the headers became normal:
<igDP:UnboundField Width="0"> <igDP:UnboundField.Settings> <igDP:FieldSettings CellMaxHeight="0"/> </igDP:UnboundField.Settings> </igDP:UnboundField>