DayPilot Forums

DayPilot is the best open-source Outlook-like calendar control for ASP.NET.
DayPilot Pro Demo (Calendar control)
» DayPilot Pro live demo (Calendar control)
DayPilot Pro Demo (Scheduler control)
» DayPilot Pro live demo (Scheduler control)
Home » How To » Unbinding DayPilot

Unbinding DayPilot

Hi :

Can u tell me how to unbind the daypilot control ? For some scenario's i need to unbind the control and shows the rows and columns as blank.

Anonymous - 7/26/2007 5:19:01 PM
You can try binding to an empty DataTable:

DataTable dt = new DataTable();
dt.Columns.Add("start", typeof(DateTime));
dt.Columns.Add("end", typeof(DateTime));
dt.Columns.Add("name", typeof(string));
dt.Columns.Add("id", typeof(string));

DayPilotCalendar1.DataSource = dt;
DayPilotCalendar1.DataBind();
Dan Letecky - 7/26/2007 7:19:48 PM
Post reply