PC Review


Reply
Thread Tools Rate Thread

Date format in the DataGrid

 
 
Ky
Guest
Posts: n/a
 
      24th May 2005
I am using vb.net

I haven't see the propreties in the compact framework datagrid control.
Can i set the Date format in the text column?
How can i do it?

thanks




 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      24th May 2005
You have no direct control over this. One workaround is to create an
expression column on your datasource and use this to create a formatted
string representation of your date, then setup a custom grid style on the
control to show this expression column in place of the original.

Peter

--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com | http://www.peterfoot.net |
http://www.opennetcf.org

"Ky" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>I am using vb.net
>
> I haven't see the propreties in the compact framework datagrid control.
> Can i set the Date format in the text column?
> How can i do it?
>
> thanks
>
>
>
>



 
Reply With Quote
 
Ky
Guest
Posts: n/a
 
      24th May 2005
Can you show some coding ??
i am using dataset don't know how can i do it..thx a lot

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You have no direct control over this. One workaround is to create an
> expression column on your datasource and use this to create a formatted
> string representation of your date, then setup a custom grid style on the
> control to show this expression column in place of the original.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> http://www.inthehand.com | http://www.peterfoot.net |
> http://www.opennetcf.org
>
> "Ky" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> >I am using vb.net
> >
> > I haven't see the propreties in the compact framework datagrid control.
> > Can i set the Date format in the text column?
> > How can i do it?
> >
> > thanks
> >
> >
> >
> >

>
>



 
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
Date format in Datagrid vineethash@gmail.com Microsoft ASP .NET 2 6th Jul 2007 09:52 AM
In datagrid, how do you format a date? tomcarr1@gmail.com Microsoft Dot NET 1 9th Jun 2006 08:26 PM
Date format in datagrid =?Utf-8?B?RGVyZWsgVmluY2VudA==?= Microsoft ASP .NET 2 6th Apr 2006 06:00 PM
Date Format In datagrid. Agnes Microsoft VB .NET 1 12th Apr 2005 05:13 AM
Date format in datagrid Niclas Lindblom Microsoft VB .NET 1 13th Apr 2004 10:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:21 AM.