$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Scheduler control for Windows Forms
Create rich Outlook style functionality and add rich scheduling interfaces to C# Windows application
Home > WinForms UI Controls > User Manual > Work Week Views in Scheduler in C#

Display and Set Work Week View with KetticScheduler in C#.NET

The WorkWeek View of KetticScheduler is a view mode that display the work days only on the Calendar in your Windows Forms application. That is to say, the WorkWeek view of KetticScheduler will hide the weekends in the view. The work week view mode is actually a special case of the week view mode. This view is enabled through setting the DisplayWeekend property to false.

C# Setting Work Week View with Scheduler

To change the default view to be the Work Week view in Scheduler, we shall set the active view type to Work Week View. The C# code as below shows the setting.

this.ketticScheduler1.ActiveViewType = Kettic.WinForms.UI.SchedulerViewType.WorkWeek;

C# Get Week View in Scheduler for Windows Forms

When we set the WorkWeek View in KetticScheduler, we can use the GetDayView method to get the instance to the SchedulerWeekView. The C# code snippet below demonstrates how to get the C# method.

SchedulerWeekView weekView = this.ketticScheduler1.GetWeekView();
Alternatively, we can set the ActiveView property with the C# code below to get the work week view for Windows application.

SchedulerWeekView weekView = this.ketticScheduler1.GetWeekView();

C# Show/Hide the Day Headers in Scheduler

To show or hide the day headers of WorkWeek View on calendar, we can enable the DisplayHeader property of the KetticScheduler control as the C# code below.

weekView.DisplayHeader = true;

Customize Day Header for Calendar in Scheduler

To customize the format of the day header, KetticScheduler contains the HeaderFormat property to achieve the formatting. The C# code below shows how to set the format.

weekView.HeaderFormat = "MMMM dd";

C# Change Ruler Scale for WeekView

KetticScheduler View C# class contains the RangeFactor property to set the scale of the ruler. It is possible to set the ruler scale to be a predefined values or a new scale. The available Range factor modes include 5 minutes, 10 minutes, a quarter, half hour and one hour. To set the scale range, use the C# code below.

weekView.RangeFactor = ScaleRange.Hour;

Set Height to Ruler and Row in Scheduler

The WorkWeek view of the KetticScheduler provides the RulerScaleSize property to customize the height of the ruler as well as the row. The C# code below demonstrates the height size customization.

weekView.RulerScaleSize = 70;

C# Set Ruler Width in KetticScheduler

The WorkWeek View of the KetticScheduler provides the RulerWidth property to customize the width of the ruler. The valid value ranges from 0 pixels to greater. The C# code below shows the modification.

weekView.RulerWidth = 60;

C# Set Start and End Times for Calendar with Scheduler

To set the start and end times shown on your Calendar by using Scheduler control, we can use the RulerStartScale and RulerEndScale properties, whose valid values ranges from 0 to 24. The start and end times setting will be useful when we display part of the hours in a day. The C# code below shows the setting.

weekView.RulerScaleSize = 15;

Format Ruler Time for Calendar in Scheduler

The week view of the KetticScheduler provides the RulerTimeFormat property for the users to customize the time format to be am or pm. The C# code below demonstrates the setting of Ruler Time Format.

weekView.RulerStartScale = 10;
weekView.RulerEndScale = 18;
weekView.RulerTimeFormat = RulerTimeFormat.hours12;

weekView.RulerStartScale = 8;
weekView.RulerEndScale = 15;
weekView.RulerTimeFormat = RulerTimeFormat.hours24;

Display and Hide Ruler on Calendar in Scheduler

To display and hide the ruler, enable or disable the DisplayRuler property in Scheduler

weekView.DisplayRuler = true;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls