Thursday, February 5, 2009

Removing time from a gridview that is bound to a date/time field in sqlserver

You can simply remove the time from being displayed in a gridview that is bound to a date\time field in sql server.
The following explains this procedure :

1.Select GridView EditColumns
Removing time from gridview
2.Select dateTime Bounded Field

3.Change Html encode Property to false

4.Change DataFormatingString "{0:d}"

Gridview edit columns

No comments:

Post a Comment


Related Posts with Thumbnails