Skip to main content

RepositoryItemDateEdit.CustomWeekNumber Event

Allows week numbers to be customized.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v23.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 RepositoryItemDateEdit.ShowWeekNumbers property is set to true, the DateEdit control displays week numbers in the year next to each week in the calendar. The year’s first week number is determined based on the RepositoryItemDateEdit.WeekNumberRule option.

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

See Also