A couple of issues I would like to get feedback / workarounds for (using WPF v.9.1.20091.1006):
1. I have the FieldLayoutSetting set as follows:
ExpansionIndicatorDisplayMode="CheckOnDisplay"
However if the top level collection contains items with multiple child collections, then this does not work as expected. All the expansion indicators are left visible with the default '+'. If you have only a single child collection then all works as expected and only the items with a non-empty child collection display the expansion indicator.
2. It appears that the description for a layout only shows if there are multiple sibling collections per parent. (see attached pic). I would like to have the description always show. Is there a way to accomplish this?
I can see now what you have in mind.
First, let me say "thank you" for the effort and time spent on creating these samples.
Regarding the label differences, I believe this is intentional. The description property does not play any role in this ( to the best of my knowledge the Description content is not visible anywhere in the XamDataGrid). However, I am going to check with our teams whether this is or is not intentional and follow up in this post when I have information about this.
Regarding the ExpansionIndicator, this looks like an issue to me. I will bring that up to my colleagues as well.
Thanks,
Alex.
This version of the example shows the expansion indicator issue. In both datagrids the expansion indicator for the first item ("FOO-0") should be hidden as the child collection(s) do not have any items. However this only works if you have a single child collection, not multiple.
I think your example also has two children per parent.
I have put together a small example that shows the problem. The sample has two datagrids that both bind the same data. The first grid binds both child collections, the second only one of the two. When you expand the parent items you can see the label differences:
Hello,
I was not able to reproduce this behavior. Here is a screenshot of what I am getting when binding the XamDataGrid to a NWind DataSet.
Am I missing something?
If so, please give more information or better attach a sample project so that we can look it in.