Version

Disable GroupBy

The xamDataPresenter™ control displays a GroupByArea above the data area. You can prevent the GroupByArea from displaying by setting the GroupByAreaLocation property.

The following procedure assumes you have a data bound xamDataPresenter, and you want to hide the GroupByArea, so that end users can’t group fields. For more information, see Adding xamDataPresenter to Your Application.

  1. The following XAML creates an instance of XamDataPresenter and names it. The XAML then sets the GroupByAreaLocation property to None.

In XAML:

<igDP:XamDataPresenter x:Name="XamDataPresenter1"
  ...
  GroupByAreaLocation="None"/>
  1. Build and run the project. You should see xamDataPresenter without a group-by area similar to the image below.

disabling group by in xamdatapresenter