Dim myResource1 As New DevExpress.XtraScheduler.Resource myResource1.Caption = "Room 1" Me.SchedulerStorage1.Resources.Add(myResource1) Dim myResource2 As New DevExpress.XtraScheduler.Resource myResource2.Caption = "Room 2" Me.SchedulerStorage1.Resources.Add(myResource2)In my case, and most others probably, the number is unknown and determined when I get a dataview created. So my question is, how do I load those items into the collection in a generic fashion.
dim oResourceObject as New DevExpress.XtraScheduler.Resource ' Get a dataview with all the records Dim goResources As DataView = GetDataViewObject.GetDataView(cSQL) Dim drv2 As DataRowView For Each drv2 In goMeetProc oResourceObject.Caption = drv2("ResourceName") oResourceStartTime = drv2("ResourceStartTime") NextThanks for any help and pointers.