Back to Devexpress

GridOptionsMenu.ShowDateTimeGroupIntervalItems Property

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsmenu-8f2bc5fa.md

latest3.1 KB
Original Source

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.v25.2.dll

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

Declaration

csharp
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowDateTimeGroupIntervalItems { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowDateTimeGroupIntervalItems As Boolean

Property Value

TypeDefaultDescription
Booleantrue

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 TypePath 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:

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

GroupInterval

GridOptionsMenu Class

GridOptionsMenu Members

DevExpress.XtraGrid.Views.Grid Namespace