I have a RadGrid bounded with an ObjectDataSource. I have a DateTime parameter that gives some problem.
When I try to update data i get the following error: "Cannot convert value of parameter 'Data' from 'System.String' to 'System.DateTime' ".
I tried also to specify the format of date:
<telerik:GridBoundColumn DataField="Data" DataType="System.DateTime"
When I try to update data i get the following error: "Cannot convert value of parameter 'Data' from 'System.String' to 'System.DateTime' ".
I tried also to specify the format of date:
<telerik:GridBoundColumn DataField="Data" DataType="System.DateTime"
HeaderText="Data" SortExpression="Data" UniqueName="Data" EditFormHeaderTextFormat="{0:dd/MM/yyyy HH:mm:ss}" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}">
</telerik:GridBoundColumn>
or to use:
<
telerik:GridDateTimeColumn DataField="Data" DataType="System.DateTime" HeaderText="Data" SortExpression="Data" UniqueName="Data" DataFormatString="{0:dd/MM/yyyy HH:mm:ss}" >
</telerik:GridDateTimeColumn>
I get always the same error, what can I do to solve?