By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,984 Members | 1,421 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,984 IT Pros & Developers. It's quick & easy.

gridview auto columns

P: n/a
hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format without
the time when Auto Columns are on?

thanks,
rodchar
May 31 '07 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Why not just turn autocolumns off and use bound fields?
--
David Wier
MVP/ASPInsider
http://aspnet101.com
http://iWritePro.com

"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...
hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format
without
the time when Auto Columns are on?

thanks,
rodchar

May 31 '07 #2

P: n/a
You can format dates in the database select statement.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:2C**********************************@microsof t.com...
hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format
without
the time when Auto Columns are on?

thanks,
rodchar

May 31 '07 #3

P: n/a
On May 31, 4:52 pm, rodchar <rodc...@discussions.microsoft.comwrote:
hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format without
the time when Auto Columns are on?

thanks,
rodchar
Format the date in the select statement

For SQL Server

select convert(varchar,datetimefield,101) from table1

May 31 '07 #4

P: n/a
thanks everyone for the many possibilities.

"rodchar" wrote:
hey all,
i have a gridview that have auto columns on. Well one of the fields is a
date field which shows the time by default. Is there a way to format without
the time when Auto Columns are on?

thanks,
rodchar
May 31 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.