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
1160
How do I keep some columns from showing in the group by area
posted

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

Parents
No Data
Reply
  • 69686
    Verified Answer
    posted

    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.

Children