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

Can't update a date field in Rad grid

1 Answer 31 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Manuka
Top achievements
Rank 1
Manuka asked on 31 Oct 2008, 03:09 PM

Hi,

I'm trying to edit and update a Date field in a radgrid. But an error shows "Cannot convert value of Parameter 'Date' from System.String to System.DateTime". I'm populating the radgrid using a ObjectDataSource which would try to update the mapped object when I try click on the update button on the radgrid.

Please Help!

Thank you,
Manuka.

1 Answer, 1 is accepted

Sort by
0
Nikolay Rusev
Telerik team
answered on 03 Nov 2008, 03:29 PM
Hello Manuka,

I assume that there is an issue with the parameters set in your Insert/Update methods.
The links below shows how to use ObjectDataSource with RadGrid

Automatic operations with ObjectDataSource
Automatic DataSource operations

You can also verify whether you have set properly DataType of the column which contains DataTime values.

Sincerely yours,
Nikolay
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Manuka
Top achievements
Rank 1
Answers by
Nikolay Rusev
Telerik team
Share this question
or