Hi!
In my app there are xamDataGrid colums that make no sense to group by - e.g. hyperlink columns, buttons, etc. In fact the column headers are empty so they show up in the group by area as empty textblocks. So I need to suppress their appearance in the group by area. Has anyone else encounterd this requirement and how did you solve it?
Thanks
Glenn
Thanks Andrew - I should have caught that in the properties myself...but there are sooo many of them.
An alternative approach (since the groupby area could be refresh/updated at any time) would be to set the Field's Settings.AllowGroupBy property to false.
Thanks for the quick response Alex...that worked perfeclty!
Have a good one!
Hello Glenn,
You can hide the fields that you don't want to show in the GroupByArea like this:
xamDataGrid1.GroupByArea.AvailableFieldLabels[1].Visibility = Visibility.Collapsed;
xamDataGrid1.GroupByArea.AvailableFieldLabels[2].Visibility = Visibility.Collapsed;
Hope this helps,
Alex.