Tutorial of Scheduler WinForms Control Data Binding in C#.NET
KetticScheduler control allows the developers to create and bind this component to data source in C# code for Windows Forms application. This control provides large flexibility for users to bind Scheduler to data in various situations. In the C# tutorial below, we shall bind the KetticScheduler to a database whose appointments and resources are in a many to many relation. In the data binding process, we shall use the SchedulerBindingDataSource component of the KetticScheduler.
KetticScheduler Data Binding in Windows Forms
To bind the KetticScheduler control to a data source, we must add the control to your Windows Form, and create a SchedulerBindingDataSource instance. The following steps demonstrate how to setup the instance for KetticScheduler data binding.
Map Properties in Scheduler at Design Time
KetticScheduler control provides two mapping information instances, AppointmentMappingInfo and ResourceMappingInfo, for the developers to map the fields of the data source to the correct properties of the scheduler. The two mapping instances can be edited in the Edit Appointment Mapping button and the Edit Resource Mapping button. C# code for Mapping Fields of Data Source for Scheduler
Alternatively, the developers can also map the fields of the data source via C# code to the correct scheduler properties. The C# code below shows how to assign the two information instances, AppointmentMappingInfo and ResourceMappingInfo, to SchedulerBindingDataSource. Retrieve Data for Scheduler in C#.NET
Update Data Source for KetticScheduler in C#.NET
When we need to update the data source of the KetticScheduler control, we can use the C# code below and add it to the Click event handler of the Update button. After that, when the data in the source is updated, the KetticScheduler control will update the data at the same time. |
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 |