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

CalendarControlBase.CustomWeekNumber Event

Allows week numbers to be customized.

Namespace: DevExpress.XtraEditors.Controls

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Events")]
public event CustomWeekNumberEventHandler CustomWeekNumber

#Event Data

The CustomWeekNumber event's data class is DevExpress.XtraEditors.Repository.CustomWeekNumberEventArgs.

#Remarks

If the CalendarControlBase.ShowWeekNumbers property is set to true, the calendar displays week numbers in the year next to each week. The year’s first week number is determined based on the CalendarControlBase.WeekNumberRule option.

The CustomWeekNumber event allows you to specify the week numbers based on custom logic. The Date event parameter returns the last day of the week being processed. The WeekNumber event parameter allows you to specify a custom week number.

See Also