Subject: format and databinding
Posted By: marclena Post Date: 2/11/2004 10:36:45 AM
<ItemTemplate>                        
<asp:Label runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Value", "{0:c0}") %>'>
                                                        </asp:Label>
                                                    </ItemTemplate>

Hello, I've got this inside a datagrid.
This is a money format, but it display the currency symbol as well, does anyone how to do to remove the symbol, not the formating just the symbol?
Thanks

Reply By: planoie Reply Date: 2/11/2004 8:11:44 PM
If you don't want to format as a currency, just format as a decimal number.  I have used this to format as the basic structure of currency but without the symbol:

{0:#,##0.00}

Peter
------------------------------------------------------
Work smarter, not harder.

Go to topic 9703

Return to index page 950
Return to index page 949
Return to index page 948
Return to index page 947
Return to index page 946
Return to index page 945
Return to index page 944
Return to index page 943
Return to index page 942
Return to index page 941