Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Calendar in Gridview

0 views
Skip to first unread message

Arne Garvander

unread,
Dec 29, 2009, 8:36:01 AM12/29/09
to
How do I add a calendar control in a Gridview?
Are any other good ideas for verifying a date in a Gridview?
--
Arne Garvander
(Happily unemployed professional Geek)

Mark Rae [MVP]

unread,
Dec 29, 2009, 8:59:04 AM12/29/09
to
"Arne Garvander" <ArneGa...@discussions.microsoft.com> wrote in message
news:5E88D191-14F9-4D4B...@microsoft.com...

> How do I add a calendar control in a Gridview?

http://www.google.co.uk/search?aq=f&sourceid=chrome&ie=UTF-8&q=GridView+calendar


--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Gregory A. Beamer

unread,
Dec 29, 2009, 10:58:00 AM12/29/09
to
=?Utf-8?B?QXJuZSBHYXJ2YW5kZXI=?=
<ArneGa...@discussions.microsoft.com> wrote in news:5E88D191-14F9-
4D4B-A917-8...@microsoft.com:

> How do I add a calendar control in a Gridview?
> Are any other good ideas for verifying a date in a Gridview?

TemplateField is the main answer.

NOTE: There are some tricks to this, as explained here:
http://snurl.com/twkeo

Editing in the Grid, which is the main reason for this type of control,
is something you have to think over carefully, as it can end up with a
mess. Users often think that edits to a Grid immediately appear in the
database, which is only the case if you wire it up (generally AJAX).
This is a usability issue.

I find it better, in most cases, to have the row editing in a FormView,
for two reasons:

1. It focuses the user on the edit
2. The user is more likely to realize they have to mash the save button
to get the changes to the database

This is not saying that editing in a Grid is always wrong, just that it
is less usuable in the non-AJAX model, due to user perception from using
windows apps.

Peace and Grace,

--
Gregory A. Beamer (MVP)

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************

0 new messages