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

TcxCustomGridTableDateTimeHandling.YearFormat Property

Specifies the format pattern for filter conditions and grouping values created using years.

#Declaration

Delphi
property YearFormat: string read; write;

#Property Value

Type
string

#Remarks

If this property is set to an empty string, the format pattern is determined automatically as specified by the GetYearFormat function.

Refer to the FormatDateTime function’s description for additional information on specifiers which can be used to create the format string.

A View creates filter conditions using years when the dtfYears option is enabled in the Filters property, and a filter dropdown is opened for any item that displays date/time values.

A View creates grouping values using years provided that:

  • the Grouping property is set to dtgByYear, and data is grouped by any of the items that display date/time values;

  • the DateTimeGrouping property of an item that displays date/time values is set to dtgByYear and data is grouped by this item.

These grouping values are displayed in corresponding group rows.

See Also