Skip to main content

TcxCustomGridTableView.OnInitFilteringDateRanges Event

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

Declaration

property OnInitFilteringDateRanges: TcxGridInitDateRangesEvent read; write;

Remarks

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

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

The ADateRanges parameter provides access to the item’s collection. You can access this collection via the item’s FilteringDateRanges 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 OnInitFilteringDateRanges event is fired after the View’s OnInitFilteringDateRanges event and allows you to further adjust the item’s collection of filter date ranges.

See Also