windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-dot-gridoptionsmenu-8f2bc5fa.md
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
[DefaultValue(true)]
[XtraSerializableProperty]
public virtual bool ShowDateTimeGroupIntervalItems { get; set; }
<DefaultValue(True)>
<XtraSerializableProperty>
Public Overridable Property ShowDateTimeGroupIntervalItems As Boolean
| 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.
|
You can access this nested property as listed below:
| Object Type | Path to ShowDateTimeGroupIntervalItems |
|---|---|
| GridView |
.OptionsMenu .ShowDateTimeGroupIntervalItems
|
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:
Use the GridColumn.GroupInterval property to specify the group interval for columns in code.
See Also