Well, technically I don't see a big difference between these two schemes:
List<YourEvent> list = new List<YourEvent>();
foreach (Item item in YourDataSource) {
YourEvent e = new YourEvent(item.Start, item.End, ...);
list.Add(e);
}
DayPilotMonth1.DataSource = list;
DayPilotMonth1.DataBind();
and
foreach (Item item in YourDataSource) {
Event e = new Event(item.Start, item.End, ...);
DayPilotMonth1.Items.Add(e);
}
But it seems that you are not the only one who prefers the second option. ;-)
The collection of events (Items from the example above) is maintained internally anyway (it's being filled during the DataBind). It won't be a big problem to allow direct access to the collection. Just remember that you will have to fill DayPilot's Event class (internal at this moment) anyway so it doesn't save you so much work.
I hope it could be available in the next release (
4.6), at least for DayPilotMonth as an experiment.
And thank you for spending the time with your post, such discussions help DayPilot be better.