我把ScheduleControl自己的右键事件屏蔽掉了,自己写了一些简单的事件(新建计划........),现在遇到的问题是,这些新建的Appointment存不到数据库中(SQlServer2000)中去。但是,如果我在数据库中直接写记录,则可以对等的显示在ScheduleControl控件里去。我只知道调用ScheduleStorage里的BeginUpdate和EndUpdate事件就完成了往数据库里存数据的功能,不知道这里还有什么玄机吗?
    特别是对应Appointment里的那个ReccurrenceInfo属性,不知该如何定义,在数据库中设成Image,总是报错.......
    现在是黔驴技穷了,恳请有知道的高手能不吝赐教啊,感激不尽!!!!!!

解决方案 »

  1.   

    神马情况,没人用这个,自己顶个!!!
    PS:在运行时会出现这个异常——“DevExpress.XtraScheduler.v10.1.Core.dll”类型的异常!!真是拙急啊!!!!
      

  2.   

    http://www.devexpress.com/Support/Center/p/E551.aspxDim cmdBuilder As New SqlCommandBuilder(CarsAdapter)
    CarsAdapter.InsertCommand = cmdBuilder.GetInsertCommand()
    CarsAdapter.DeleteCommand = cmdBuilder.GetDeleteCommand()
    CarsAdapter.UpdateCommand = cmdBuilder.GetUpdateCommand()Private Sub OnApptChangedInsertedDeleted(ByVal sender As Object, ByVal e As
    DevExpress.XtraScheduler.PersistentObjectsEventArgs) Handles schedulerStorage1.AppointmentsChanged,
    schedulerStorage1.AppointmentsInserted, schedulerStorage1.AppointmentsDeleted
                CarsAdapter.Update(CarsDataset.Tables("CarScheduling"))
    End Sub