Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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! :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...