Format Not Working

G

Guest

I was led to believe that the 'format' property on the
'datagridtextboxcolumn' class would be working starting in CF2 SP1. I read
this on a blog that appeared to be from the CF Team.
http://blogs.msdn.com/netcfteam/archive/2006/04/25/583542.aspx

I am running CF2 SP2 on a windows mobile 5.0 smartphone and I am unable to
get the formatting of any data in a datagrid cell to work. Am I doing
something wrong or was this never implemented? I am trying to format a
datetime object to a particular string.
 
I

Ilya Tumanov [MS]

It is implemented staring V2 SP1. Make sure your styles are actually in
effect.

Common mistake would be incorrect mapping names in which case styles would
not do anything.



--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 
G

Guest

My styles are correct, I know this because I have just the columns that I
want and i have the correct headings.

The format string itself is just a string of chars, right? Nothing like what
you have to do over in ASP.Net with the '0:xxx'?
 
I

Ilya Tumanov [MS]

Yes, it's a string which must be valid for particular type. Is it correct
for the type?

Is the type as expected? Say, if you load data from XML to DataSet without
schema all type information will be lost and you will have strings
everywhere and format for, say, decimal won't work on strings.

Also, does your code work on a desktop?



--
Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.

*** Want to find answers instantly? Here's how... ***

1. Go to
http://groups-beta.google.com/group/microsoft.public.dotnet.framework.compactframework?hl=en
2. Type your question in the text box near "Search this group" button.
3. Hit "Search this group" button.
4. Read answer(s).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top