Greetings,
I have a grid that's bound to a hierarchical collection, and I'd like to group by an unbound field in the top level of the hierarchy. If I enable the "grouping" area and manually drag the column header to the grouping area, it works perfectly, but if I do what I think is the same thing in XAML, the sorting is all wrong and the first group displays with a blank description. The syntax for sorting/grouping seems obvious enough. Here's what I have:
<igDP:FieldLayout.SortedFields> <igDP:FieldSortDescription IsGroupBy="True" Direction="Ascending" FieldName="displayClient" /></igDP:FieldLayout.SortedFields>
Is there something I'm missing? Could it be because it's an unbound field whose value is set in an "InitializeRecord" event handler? If there's any more info I can provide, please let me know. I'm running WPF 2008 Vol.2.
Thanks,
Bob
A bit more information...
The problem occurs in my case apparently because when the ItemSource property is set for the grid, the collection I'm specifying is not yet populated. I worked around the issue by defining my sorting/grouping in code after the collection was populated, so I'm sort of OK for now.
But, it seems to me like I shouldn't have to do this. Any thoughts?
Regards,
Hello Bob,
Tt is obviously because of the sequence of the events and populating the data. Give us please a sample project with the binding,collections and events to take a closer look.
Alex.