发布网友 发布时间:2023-05-06 23:41
共1个回答
热心网友 时间:2023-11-24 00:57
可以使用的,具体步骤如下:1. 首先创建XPO事件及资源数据映射类2. 绑定数据到XtraScheler中,如:schelerStorage1.Appointments.DataSource = this.xpCollection1;schelerStorage1.Appointments.Mappings.AllDay = "AllDay";schelerStorage1.Appointments.Mappings.Description = "Description";schelerStorage1.Appointments.Mappings.End = "Finish";3. 在OnAppointmentsChanged等事件中修改数据,代码如下 private void OnAppointmentsChanged(object sender, PersistentObjectsEventArgs e) { foreach(Appointment apt in e.Objects) { XPBaseObject o = apt.GetSourceObject((SchelerStorage)sender) as XPBaseObject; if(o != null) o.Save(); }}点击下载示例 本站文章除注明转载外,均为本站原创或翻译热心网友 时间:2023-11-24 00:57
可以使用的,具体步骤如下:1. 首先创建XPO事件及资源数据映射类2. 绑定数据到XtraScheler中,如:schelerStorage1.Appointments.DataSource = this.xpCollection1;schelerStorage1.Appointments.Mappings.AllDay = "AllDay";schelerStorage1.Appointments.Mappings.Description = "Description";schelerStorage1.Appointments.Mappings.End = "Finish";3. 在OnAppointmentsChanged等事件中修改数据,代码如下 private void OnAppointmentsChanged(object sender, PersistentObjectsEventArgs e) { foreach(Appointment apt in e.Objects) { XPBaseObject o = apt.GetSourceObject((SchelerStorage)sender) as XPBaseObject; if(o != null) o.Save(); }}点击下载示例 本站文章除注明转载外,均为本站原创或翻译热心网友 时间:2023-11-24 00:57
可以使用的,具体步骤如下:1. 首先创建XPO事件及资源数据映射类2. 绑定数据到XtraScheler中,如:schelerStorage1.Appointments.DataSource = this.xpCollection1;schelerStorage1.Appointments.Mappings.AllDay = "AllDay";schelerStorage1.Appointments.Mappings.Description = "Description";schelerStorage1.Appointments.Mappings.End = "Finish";3. 在OnAppointmentsChanged等事件中修改数据,代码如下 private void OnAppointmentsChanged(object sender, PersistentObjectsEventArgs e) { foreach(Appointment apt in e.Objects) { XPBaseObject o = apt.GetSourceObject((SchelerStorage)sender) as XPBaseObject; if(o != null) o.Save(); }}点击下载示例 本站文章除注明转载外,均为本站原创或翻译