关于DEV2010控件schedulerControl1 急!!! 20
我用的DEV2010里的控件schedulerControl1VS2005+SQL2005想绑定schedulerControl1数据源到SQL的数据表中,主要存储sch...
我用的DEV2010里的控件 schedulerControl1 VS2005+SQL2005 想绑定schedulerControl1数据源到SQL的数据表中,主要存储schedulerControl1的任务,比如我设置了多少点到多少点做什么事这些,要把它保存在SQL数据表中!
附加图片 展开
附加图片 展开
3个回答
展开全部
必须使用Appointments[] 来绑定到数据源中
如下你可以看到效果
schedulerStorage1.Appointments.Add(new DevExpress.XtraScheduler.Appointment());
schedulerStorage1.Appointments[0].AllDay =false;
schedulerStorage1.Appointments[0].LabelId = 2;
schedulerStorage1.Appointments[0].Location = "Title";
schedulerStorage1.Appointments[0].Start = DateTime.Now;
schedulerStorage1.Appointments[0].End = DateTime.Now.AddHours(1);
schedulerStorage1.Appointments[0].Subject = "Subject";
schedulerStorage1.Appointments[0].StatusId = 1;
schedulerStorage1.Appointments[0].Description = "描述";
如下你可以看到效果
schedulerStorage1.Appointments.Add(new DevExpress.XtraScheduler.Appointment());
schedulerStorage1.Appointments[0].AllDay =false;
schedulerStorage1.Appointments[0].LabelId = 2;
schedulerStorage1.Appointments[0].Location = "Title";
schedulerStorage1.Appointments[0].Start = DateTime.Now;
schedulerStorage1.Appointments[0].End = DateTime.Now.AddHours(1);
schedulerStorage1.Appointments[0].Subject = "Subject";
schedulerStorage1.Appointments[0].StatusId = 1;
schedulerStorage1.Appointments[0].Description = "描述";
参考资料: Blue
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询