Datagrid formatting

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Freddie (anonymous_at_discussions.microsoft.com)
Date: 06/16/04


Date: Wed, 16 Jun 2004 16:07:27 -0700

Hi

  I need to set the format of a column for currencies but
when I set the dataformatstring to "{0:c}" i get a dollar
sign along with the formatting.how can i remove the
dollar sign, and also how can i right justify the
numbers

thanks in advance



Relevant Pages

  • dealing with currencies and different locales....
    ... I found that I should use CDbl() instead of Val. ... I found that I could use the Format() function using a format name such as: ... Is there anything else I should know about displaying currencies in text boxes and then reading them again? ...
    (comp.lang.basic.visual.misc)
  • Passing format to variable Part 2
    ... I am passing a currenct number format to a variable and using applying ... If the currency chosen equals one of five specific ... currencies I pass one of 5 specific formats to a variable. ... variable "Currencies" into the format string. ...
    (microsoft.public.excel.programming)
  • Re: DataFormatString of GridView control isnt working
    ... GridView & DataFormatString in post beta 2 ... I have a webform with a GridView on it. ... format ... format string. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Re: DataFormatString not getting applied to GridViews BoundField
    ... boundfield(which has DataFormatString set) does not format output as ... where an initial response from the community or a Microsoft Support ... DataSource = list; ... date and time format is determined by the user. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Passing format to variable Part 2
    ... string in order to get it into a number format. ... If the currency chosen equals one of five specific ... > currencies I pass one of 5 specific formats to a variable. ...
    (microsoft.public.excel.programming)