PC Review


Reply
Thread Tools Rate Thread

DataGrid column formatting (DateTime)

 
 
Jared Miniman [MVP]
Guest
Posts: n/a
 
      19th Sep 2003
I have a VERY space-limited DataGrid control and I want to finely specify
the formatting of dates that appear in one of the columns. With CF SP1, I
could see most of the information I wanted; with SP2, all I see is
"MM/DD/YY" unless I expand the column width. Is there ANY code (custom or
otherwise) that allows me to specify the string formatting of a
TextBoxColumn?

--
_________________________________
Jared Miniman, MS-MVP Mobile Devices
Mobile Computer Consultant

ActiveSync problems?
http://www.microsoft.com/mobile/pock...activesync.asp
Connection Mngr Q's?
http://www.microsoft.com/mobile/pock...nectionmanager


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      19th Sep 2003
Could you introduce an additional column to your DataTable using an
expression to format the date column as required. This depends on the
ability to do such data manipulation with an expression column, and I
haven't got the tools to try it here at the moment. Then set a custom
gridstyle to show this column but not the original one. Some GridStyle
sample code can be found here:-
http://www.inthehand.com/forums/viewtopic.php?t=96

Peter

--
Peter Foot
Windows Embedded MVP

www.inthehand.com | www.opennetcf.org

"Jared Miniman [MVP]" <(E-Mail Removed)> wrote in message
news:O%(E-Mail Removed)...
> I have a VERY space-limited DataGrid control and I want to finely specify
> the formatting of dates that appear in one of the columns. With CF SP1, I
> could see most of the information I wanted; with SP2, all I see is
> "MM/DD/YY" unless I expand the column width. Is there ANY code (custom or
> otherwise) that allows me to specify the string formatting of a
> TextBoxColumn?
>
> --
> _________________________________
> Jared Miniman, MS-MVP Mobile Devices
> Mobile Computer Consultant
>
> ActiveSync problems?
> http://www.microsoft.com/mobile/pock...activesync.asp
> Connection Mngr Q's?
> http://www.microsoft.com/mobile/pock...nectionmanager
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Problem showing datetime column in datagrid (Framework 1.1) =?Utf-8?B?S2VycnkgTW9vcm1hbg==?= Microsoft ADO .NET 0 19th Jan 2007 08:12 PM
Formatting a datetime column David Microsoft ASP .NET 3 19th Oct 2006 06:51 PM
DataGrid datetime column format Charlie Brown Microsoft VB .NET 1 10th Jun 2006 11:04 AM
sort datetime column in datagrid =?Utf-8?B?a2VpdGg=?= Microsoft C# .NET 0 2nd Nov 2004 10:38 PM
Setting Focus in Datetime Datagrid Column =?Utf-8?B?U3Jpbml2YXNhIFJhZ2hhdmFu?= Microsoft Dot NET Framework Forms 0 28th Jan 2004 04:36 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 AM.