Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
630
Problem with sorting/grouping in XAML
posted

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