Results 1 to 2 of 2

Thread: Formatting String in Datagrid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2002
    Location
    Reading
    Posts
    70

    Formatting String in Datagrid

    I'm trying to format a currency value using the 'dataformatstring' property of a datagrid.

    I'm using {0:C} to do this and that's fine to a point. I'm in the UK so it's defaulting to my local culture and displaying £ sign in front of it. Unfortunately some of the currency values I'm dealing with are in US $, also, I it's an editable grid so I'm going to be updating values to the database. I'd like to over ride it in some way to make no currency sign appear.

    Any ideas?

  2. #2
    Junior Member
    Join Date
    Mar 2004
    Posts
    22

    Re: Formatting String in Datagrid

    "£{0:f2}"

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width