search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Unbinding DayPilot

Asked by Anonymous
16 years ago.

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.

Answer posted by Dan Letecky
16 years ago.
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();
This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.