Formatting Cells in KetticScheduler in C#.NET
KetticScheduler control is capable of formatting cells to set the visual elements, which keep the appointment and view data. The customization of cells formatting is achieved through the CellFormatting event. When we create a SchedulerCellElement, the CellFormatting event is fired at the position where the cells are necessary to be shown. The arguments of the CellFormatting event include a reference to the cell element for the users to customize the properties. In the C# tutorial below, we can find how to customize the cells properties in the KetticScheduler.
Data Cells included in KetticScheduler control
The SchedulerCellElement allows the users to create data cells with the KetticScheduler control. There are a few properties available for the users to customize the data cell, including Date for returning the date, IsToday for setting current cell to today, IsWorkTime for setting current cell to be a work time slot, and IsWholeHour for customize the cell to present a whole hour. Header Cells of KetticScheduler for WinForms
The header cells are created via the SchedulerHeaderCellElement, which derives from the SchedulerCellElement, so we can customize the header cells through the properties of the SchedulerCellElement. Additionally, there is one more property available, the IsVertical for returning the cell element in vertical. C# Format Data Cells in KetticScheduler control
The following C# code demonstrates how to format the data cells. In this example, we change the cell which stands for a specific day to be Yellow.
To reset the data cells, we can change the BackColor property with the C# code below.
C# Format Header Cells in KetticScheduler control
The header cells are mainly used to display the text of the current date and contain all day appointments. The following C# code will customize the header cells which show the text to be green and the header cell which contains all day appointment to be red. | ![]() UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlAppointment & DialogsCreate AppointmentsRecurring AppointmentsRecurrence RuleDrag-and-DropCustomizeAdd TooltipsScheduler - ViewsPropertiesGet Started in C#Day ViewMulti-Day ViewWeek ViewWork Week ViewMonth ViewTimeline ViewGroupingTime ZoneScheduler - Data BindingGet Started in C#CodelessDatasource PropertyData ProviderCustom FieldsScheduler - NavigatorGet Started in C#Navigation StepImport & Export AppointmentsImport from ICalendarExport to ICalendarImport & Export to a Custom FileScheduler - LocalizationTranslate StringsLocalize Scheduler NavigatorLocalize Dialog StringsScheduler - ReminderGet Started in C#Scheduler - AppearanceThemes and AppearanceFormat CellsScheduler - Print SupportPrint StylesEvents & CustomizationWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |