Use DataFormatString.

ASP.NET quickstart contians an example on this

----- Original Message ----- 
From: "Tejus Sawjiani" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 21, 2004 9:04 AM
Subject: [Microsofts_C_Sharp] DataGrid formatting


> 
> Hello,
> I have a problem that's been bugging me for the last
> few days... I have a datagrid that contains a column
> of doubles. Currently, a typical column value is as
> follows:
> -12394.999322
> I would like to format it as:
> -12,394.99
> 
> In other words, I would like to format the columns
> with commas. These columns are not bound to any
> database - they are just representations of internal
> datastructures in my program.
> 
> Does anyone know a nice easy way of doing this?
> 
> best,
> Tejus
> 
> 
> 
> 
> __________________________________ 
> Do you Yahoo!? 
> Take Yahoo! Mail with you! Get it on your mobile phone. 
> http://mobile.yahoo.com/maildemo 
> 
> 
> 
>  
> Yahoo! Groups Links
> 
> 
> 
>  
> 
> 
> 
> 



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/XGgtlB/TM
--------------------------------------------------------------------~-> 

 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/Microsofts_C_Sharp/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to