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

Formatting a date inside a non-editable datagrid

P: n/a
Inside a datagrid that has editcommandcolumns and such, I'm able to
format a date variable with DataFormatString ="{0:d}" to display a
properly formatted date of 7/14/2004 instead of 7/14/2004 12:00AM. But
I have a datagrid that just displays data, and when using :

HeaderText="My Date"
DataFormatString ="{0:d}"

</columns> format the date display to the simple 7/14/2004, it still gives
me the display of 7/14/2004 12:00AM, and of course I want to eliminate
the 12:00AM.

Jul 21 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.