Use "{0:c3}" instead of "{0:c}" as the format specifier.

Chris

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Wednesday, August 09, 2006 2:10 PM
To: [email protected]
Subject: [AspNet2] Formating a gridview field

Hi all,

I have a currency value that I display in my Gridview control.  Here is the
code:

<asp:TemplateField HeaderText="Labor Pallet Activities" Visible="true">
<ItemTemplate> <asp:Label ID="LaborPallet" runat="server" text='<%#
Eval("LaborPallet", "{0:c}") %>'></asp:Label> </ItemTemplate>
</asp:TemplateField> This works great but now I need to display this value
with 3 decimal positions.  How can I do this?

Thanks,
Bob

[Non-text portions of this message have been removed]



 
Yahoo! Groups Links



 




 
Yahoo! Groups Links

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

<*> 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