This is a migrated thread and some comments may be shown as answers.

Using RadDateTimePicker in RadGrid

1 Answer 58 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Esperanza Ramos
Top achievements
Rank 1
Esperanza Ramos asked on 28 Aug 2008, 01:01 PM
Hi, All:

I copied from an example at telerik.com:

<

rad:GridTemplateColumn HeaderText="DateIn" DataField="DateIn" SortExpression="DateIn">
<EditItemTemplate>
<rad:RadDateTimePicker ID="RadDateTimePicker1" runat="server" Culture="English (United States)" DbSelectedDate='<%# Bind("DateIn", "{0:D}") %>' SharedCalendarID="" MinDate="01-01-1900"> <DateInput runat="server" />
</rad:RadDateTimePicker>
</EditItemTemplate>

But this won't compile: "Cannot convert type 'string' to 'System.DateTime'".

Please help.

Stanley

1 Answer, 1 is accepted

Sort by
0
Missing User
answered on 28 Aug 2008, 01:40 PM


Stanley, please review our reply to the forum post you have opened on the same topic.

Kind regards,
Plamen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Esperanza Ramos
Top achievements
Rank 1
Answers by
Missing User
Share this question
or