ComponentGO! :: Forum

user:
psw:
| lost password
home recent posts search register AspNetForum v.3.0.0.0

Home » Control - ComboCalendar » Loading Resources Messages in this topic - RSS

7/20/2010 1:39:09 PM
go
Posts 1090
Like filling the Appointments collection for items loading, you have to fill Resources collection:
Something like following:

foreach (AppsDataSet.ResourcesRow row in ds.Resources.Rows)
calendar.Resources.Add(createFrom(row));

Resource createFrom(AppsDataSet.ResourcesRow row) {
Resource r = new Resource();
//
r.Text = row.Text;
r.BackColor = Color.FromArgb(row.BackColor);
r.Tag = r;

return r;
}
7/19/2010 1:43:53 AM
mikeD
Posts 13
How could i load Resources from a database, say for instance the user populates Resources into a database (name etc) then is there a control to use for loading the Resources on form load?
pages: 1
|