日期:2014-05-17  浏览次数:20520 次

calendar.eventsource绑定不上数据
 protected void TreeView1_SelectedNodeChanged(object sender, EventArgs e)
    {
        Guid userid = new Guid(TreeView1.SelectedNode.Value.ToString());
        DataTable dt = new DataTable();
        dt = EventDAO.getEvents(userid);

        Calendar1.EventDateColumnName = "Work_StartTime";
        Calendar1.EventDescriptionColumnName = "Work_Description";
        Calendar1.EventHeaderColumnName = "Work_Title";

        Calendar1.EventSource =dt;
        //list.InnerHtml = "";
    }

断点调试datatable里有数据,但是calendar没有显示日志,是空的

------解决方案--------------------
Calendar1.EventBind()或Calendar1.DataBind();有吗
------解决方案--------------------
Calendar1.DataBind();