lorena Posted July 6, 2005 Posted July 6, 2005 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 Quote
bri189a Posted July 7, 2005 Posted July 7, 2005 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! :) Quote
lorena Posted July 7, 2005 Author Posted July 7, 2005 Thanks! I will give that a try. I really appreciate it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.