Click here to Skip to main content
15,908,115 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to Give Data source to Calendar control from Database...

im Doing this But Getting Error

"
Column '' does not belong to table Table.
"

C#
DataSet EventDs = new DataSet();
        obj.OpenReturenDs("Select TXT_ACTIVITY_DESC as EventHeader ,DAT_START as EventStartDate,DAT_END as EventEndDate from T_ACTIVITY Where Month(DAT_START)=10 and DAT_END is not null", EventDs);
        if (EventDs.Tables[0].Rows.Count > 0)
        {
            Calendar1.EventStartDateColumnName = "EventStartDate";
            Calendar1.EventEndDateColumnName = "EventEndDate";

            Calendar1.EventHeaderColumnName = "EventHeader";
            
            Calendar1.EventSource = EventDs.Tables[0];
        }
Posted

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900