Skip to main content

GridOptionsMenu.ShowDateTimeGroupIntervalItems Property

Gets or sets whether the context menu for grouping date-time columns contains a sub-menu that allows users to switch group mode.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Grid, DevExpress.Win.Navigation

Declaration

[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowDateTimeGroupIntervalItems { get; set; }

Property Value

Type Default Description
Boolean true

true if a menu that allows users to switch group mode for date-time columns is available at runtime; otherwise, false.

Property Paths

You can access this nested property as listed below:

Object Type Path to ShowDateTimeGroupIntervalItems
GridView
.OptionsMenu .ShowDateTimeGroupIntervalItems

Remarks

If the ShowDateTimeGroupIntervalItems option is enabled, a user can use a context menu to change the group interval for grouping date-time columns. The following image shows this menu:

ShowDateTimeGroupIntervalItems

The context menu contains the following options:

  • Day — Rows are grouped by the date part of their values, the time portion is ignored.
  • Month — Rows are grouped by the month part of their values.
  • Year — Rows are grouped by the year part of their values.
  • Smart — Rows are combined into the following non-overlapping groups according to their date value as compared with today’s date: "Beyond Next Month", "Next Month", "Later this Month", "Three Weeks Away", "Two Weeks Away", "Next Week", "Today", "Tomorrow", "Yesterday", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Last Week", "Two Weeks Ago", "Three Weeks Ago", "Earlier this Month", "Last Month", "Older".”

Use the GridColumn.GroupInterval property to specify the group interval for columns in code.

See Also