I have a RadGrid, with the EditFormSettings set to Template. Within my <FormTemplate>
I have a RadDatePicker that I need to databind.
My code:
<telerik:RadDatePicker ID="rdpStartDate" runat="server"
SelectedDate='<%# Bind("StartDate") %>'>
</telerik:RadDatePicker>
"StartDate" references the column name in my DB. I have attempted to databind the control like this and get an error because the Bind() actually returns a string that cannot be stored in the SelectedDate field because it is of type DateTime.
How can I bind this AND convert this to a DateTime to be displayed in the SelectedDate property of my RadDatePicker on the Edit/Insert forms of my RadGrid?