Suppose there are three columns in the XamDataGrid: Year, Location and Donkey. At the moment, when I pull up the header from any of these to the upper part, I get the grouping done automagically, which is great. When I pull up a second header, the gouping gets nested, which is even more great.
However, since the nesting is so clearly specified, I feel that there's no need to list the values of the column that is used for grouping - after all, it only contains one and the same value on all the lines. That's unnecessary.
How can I format my XAML (or what methods do I need to override) to only get the donkeys, if the grouping by year and location is active?
Hello Konrad,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account\My Keys and Downloads.
I have logged this with development under ID: 203930 and I have also created a support ticket on your behalf: CAS-157997-N2R2W5 and have linked the development issue to it, so that you can get automatically updated, when a Service Release containing the fix is available for download. You can get the new version from our website’s “My IG”, “My Keys & Downloads” tags: https://es.infragistics.com/Membership/Default.aspx?panel=Downloads#Downloads
You can also monitor the support ticket’s progress through the “My Support Activity” tag: https://es.infragistics.com/Membership/MySupport.aspx
In looking at it closer we do honor the Visibility of the Field being set to Hidden so we should be able to handle this on the CellVisibilityWhenGrouped so it might just be a caching issue as it does seem to update if that property is changed after the grouping operation occurs.
I understand (and it's along the lines of what I expected). However, I'd claim that - contrary to your statement - the enumerationis in fact correct. Perhaps unintentionally but still... If you think about it, that's precisely the three modes that a column ought to have - unaffected by the grouping, collapsed to be removed from the viewand- drumroll here - still occupying the same width on the display but with empty cells.
I can imagine that'd be useful on occasion, especially if the affected column is placed at a clever position in the table. So my suggestion would be to accept the mistake and follow it through by adding the functionality.
That property uses the Visibility enumeration defined by the framework which is why Hidden is there but Hidden doesn't really have any meaning in this case so the behavior your describing is expected. The property probably should have been a Boolean or different enumeration but that cannot be changed at this point.