GridView editing and datefields

B

bob

Hi,
Asp Net 2.0 VS2008.
GridView being fed by an ObjectDatasource.
ObjectDataSource is bound to DataAccess Class.

The DAL Select method returns a IEnumerable<J> to the
ObjectDataSource.
The Update method accepts a J as an input parameter.

J has a date property.
Regardless of what I do the Gridview in Edit mode inspecting this
property at the entry to the UpdateMethod always shows a 'null' date
of "01/01/0001 12:AM"

I have tried:
1)Setting the row value by updating a calendar control elsewhere on
the form.
2)Making the column a template field which hosts a calendar control in
edit mode.
3)Setting the field by typing the date valuie.
In all cases the result is the same.
I must be missing something fundamental but just can't see it.

Would appreciate any ideas.
Thanks
Bob
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,067
Latest member
HunterTere

Latest Threads

Top