I have a RadTimePicker in a RadGrid. The grid is bound to a SqlDataSource which is connected to a SQL Server 2008 database table. The table contains a column with a datatype of "time," which is not null.
When I attempt to bind a RadTimePicker to this time column, I receive the error
System.InvalidCastException:Specified cast is not valid.
This is how I'm attempting to do the databinding:
<telerik:RadTimePicker ID="RadTimePicker1" runat="server" DbSelectedDate='<%# Bind("TimeMon") %>' /> |
Please advise if I am missing something, or if the time data type in SQL Server is too new, preventing me from doing this. I am using RadControls for ASP.NET AJAX 2008.3 1314
Thanks!
Travis