Skip to main content

TcxCustomGridTableView.OnInitGroupingDateRanges Event

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

Declaration

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