ComponenetOne
配置时间存储向页面添加数据源控件AccessDataSource。设置C1EventsCalendar事件存储的DataSourceID属性,如果必要,填充DataMember属性。让最终用户能编辑事件,生成插入/更新/删除命令。 如下所示:DeleteCommand='DELETE FROM [Appointments] WHERE [AppointmentId] = ?'InsertCommand='INSERT INTO [Appointments] ([AppointmentId], [Description], [End],[Location], [Start], [Subject], [Properties], [Color], [Calendar], [Tag]) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)'SelectCommand='SELECT * FROM [Appointments]'UpdateCommand='UPDATE [Appointments] SET [Description] = ?, [End] = ?,[Location] = ?, [Start] = ?, [Subject] = ?, [Properties] = ?, [Color] = ?,[Calendar] = ?, [Tag] = ? WHERE [AppointmentId] = ?'
配置C1EventCalendar事件存储数据映射。如下代码所示: