Category / Section
How to change the header format for WeekView and WorkWeekView in WinForms ScheduleControl?
2 mins read
Change the header format
To change the
header format of WinForms ScheduleControl 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"
Work Week view header format as shown in the screenshot below
Week view:
To change the header format of ScheduleControl 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"
Week view header format as shown in the screenshot below
Month view:
To change the header format of ScheduleControl 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"
Month view header format as shown in the screenshot below
Samples: