Thanks for pointing me to the posts. It was really helpful.
But I am still having a problem.
I tried to code as follow, but an error is thrown saying that DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'StartTime'.
<asp:SqlDataSource ID="SqlDataSource1" runat="server"
ConnectionString="<%$ ConnectionStrings:ScheduleConnectionString %>"
SelectCommand="SELECT ID, Convert(Char(5), StartTime, 114), Convert(Char(5), EndTime, 114), CompanyName, Purpose, AccountManager, Presenter, ColorCode, Status, Comments FROM Demo_Theatre_DB WHERE (StartTime >= DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0)) AND (StartTime <= DATEADD(day, DATEDIFF(day, 0, GETDATE()), 1))">
</asp:SqlDataSource>
Your help will be appreciated.
Thanks