GridView editing and datefields

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • bob

    GridView editing and datefields

    Hi,
    Asp Net 2.0 VS2008.
    GridView being fed by an ObjectDatasourc e.
    ObjectDataSourc e is bound to DataAccess Class.

    The DAL Select method returns a IEnumerable<Jto the
    ObjectDataSourc e.
    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


Working...