Category / Section
How to change the header format for WeekView and WorkWeekView in WinForms ScheduleControl?
1 min read
Change the header format
To change the header format of WinForms Scheduler control in WorkWeek view, WorkWeekHeaderFormat property can be used.
C#
this.scheduleControl1.ScheduleType = ScheduleViewType.WorkWeek; this.scheduleControl1.Appearance.WorkWeekHeaderFormat = "dd/MM";
VB
Me.scheduleControl1.ScheduleType = ScheduleViewType.WorkWeek Me.scheduleControl1.Appearance.WorkWeekHeaderFormat = "dd/MM"
Week view:
To change the header format of schedule control in Week view, WeekHeaderFormat property can be used.
C#
this.scheduleControl1.ScheduleType = ScheduleViewType.Week; this.scheduleControl1.Appearance.WeekHeaderFormat = "dd/MM/yy";
VB
Me.scheduleControl1.ScheduleType = ScheduleViewType.Week Me.scheduleControl1.Appearance.WeekHeaderFormat = "dd/MM/yy"
Month view:
To change the header format of schedule control in Month view, MonthHeaderFormat property can be used.
C#
this.scheduleControl1.ScheduleType = ScheduleViewType.Month; this.scheduleControl1.Appearance.MonthHeaderFormat = "MMMM/yyyy";
VB
Me.scheduleControl1.ScheduleType = ScheduleViewType.Month Me.scheduleControl1.Appearance.MonthHeaderFormat = "MMMM/yyyy"
Samples: