Skip to main content

Dimension.DateTimeGroupInterval Property

Gets or sets the group interval for date-time values.

Namespace: DevExpress.DashboardCommon

Assembly: DevExpress.Dashboard.v23.1.Core.dll

NuGet Packages: DevExpress.Dashboard.Core, DevExpress.Win.Dashboard.Design


public DateTimeGroupInterval DateTimeGroupInterval { get; set; }

Property Value

Type Default Description
DateTimeGroupInterval Year

A DateTimeGroupInterval enumeration member that specifies how to group date-time values.


Use the DateTimeGroupInterval property to specify how to group date-time values contained in this Dimension. For instance, they can be grouped by years, months, quarters, days of the week, hours, days of the year, etc.

You can also use the DataItem.DateTimeFormat property to specify how to format these values depending on their group interval.

If the Dimension does not contain date-time data, the DateTimeGroupInterval property is not in effect.


You cannot use Grouping feature in OLAP mode.


The following code snippet shows how to create the date-time and string dimensions with the specified group intervals.

Dimension orderDateDimension = new Dimension("Order Date", DateTimeGroupInterval.MonthYear);
Dimension categoryDimension = new Dimension("CategoryName", TextGroupInterval.Alphabetical);

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DateTimeGroupInterval property.


The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also