GroupByMode Property (FieldSettings)

Determines how DataRecords are grouped
Public Property GroupByMode As FieldGroupByMode
public FieldGroupByMode GroupByMode {get; set;}

If a GroupByComparer is specified then this setting is ignored. Otherwise, an internal IGroupByEvaluator implementation will be supplied based on the FieldGroupByMode value.

Refer to the About Grouping topic in the Developer's Guide for an explanation of how this property is used.

The following sample demonstrates using the GroupByMode to provide automatic Outlook style grouping for a DateTime field. In addition, the sample also initializes the grid so that it is grouped by the Value field when the application starts. To do this, a FieldSortDescription is added to the SortedFields collection of the FieldLayout. The FieldSortDescription identifies the Name of the field to sort as well as the sort direction and that this field should be grouped by as well.


<igDP:Field Name="Value">

<igDP:FieldSettings GroupByMode="OutlookDate" />



<igDP:FieldSortDescription IsGroupBy="True" Direction="Descending" FieldName="Value"/>




Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also