Calendar control in datagrid

lorena

Centurion
Joined
Oct 23, 2003
Messages
134
Location
Phoenix, Arizona
I have a form with a datagrid from which the user can edit and delete records. Since one of the fields is a date field. I would like to include a calendar control as part of the edit in addition to the usual textboxes
Is there an example of this somewhere?
Thanks
 
That column should be a template column.

The ItemTemplate should be your label that binds to the date field which will show up as regular text as usual. Your EditItemTemplate will have a calendar control in the template where the date is set to the date field. Then on your update command you'll have to look at the calendar (using something like e.Item.Cells(x).FindControl("clndrName")) to set the new date.

Hmmm...I just realized I have a site on there that I need to do that for...wonder where my head was that day... the joys of a programmer...you're never done! :)
 
Back
Top