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

Datagrid with date field

P: n/a
I have a datagrid with a column bound to a date field. Is there a way to
format the date field?
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Hi Roger,

Check out Binding.Format Event.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Roger" <so*****@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a datagrid with a column bound to a date field. Is there a way to
format the date field?

Nov 18 '05 #2

P: n/a

Well, that's as clear as mud.

If you want an easy way to do it, first right click on the datagrid and
choose the Property builder. Then choose the columns tab on the left.
Select the column to format and type "{0:D}" in the data formatting
expression item (at the bottom). This will give you a long date format.
Check out the help for the builder for other options.

It's a bit obscure, but not as damn confusing as using the binding events.

P
"Miha Markic" <miha at rthand com> wrote in message
news:OP**************@TK2MSFTNGP10.phx.gbl...
Hi Roger,

Check out Binding.Format Event.

--
Miha Markic - RightHand .NET consulting & software development
miha at rthand com
www.rthand.com

"Roger" <so*****@microsoft.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
I have a datagrid with a column bound to a date field. Is there a way to format the date field?


Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.