Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridTableView.OnInitGroupingDateRanges Event

In This Article

Enables you to customize a collection of grouping date ranges that are common to all View items.

#Declaration

Delphi
property OnInitGroupingDateRanges: TcxGridInitDateRangesEvent read; write;

#Remarks

This event is fired before a collection of grouping date ranges is determined for any View item that displays date/time values. Once this event fires, an item’s collection of grouping date ranges is initialized with grouping date ranges common to all View items. Refer to the description of the TcxGridGroupingDateRanges.Init method for details on the initialization.

The Sender parameter specifies an item whose collection of grouping date ranges has been initialized.

The ADateRanges parameter provides access to the item’s collection of grouping date ranges. You can access this collection via the item’s GroupingDateRanges property. You can use this parameter to add and remove built-in and custom date ranges. See the Adding Custom Filter and Grouping Date Ranges topic for an example of using this parameter.

An item’s OnInitGroupingDateRanges event is fired after the View’s OnInitGroupingDateRanges event and allows you to further adjust the item’s collection of grouping date ranges.

See Also