Results 1 to 3 of 3

Thread: Dataformate Currency using a Gridview

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Feb 2003
    Location
    The Netherlands
    Posts
    30

    Dataformate Currency using a Gridview

    Hello everyone,

    After my DLL prob (thnx guyz), i know have a new problem .

    I have a gridview with several columns, these columns are databinded on my BLL class (wich connects on a dataset). 2 Columns are doubles wich i want to format into currency (Euro's). So i go to the Edit Columns menu on my datagrid and change the dataformatstring into {0:C}. After that i remember that the htmlencode should be false (i love those tutorials(a)). So i set the HTMLencode on false. But nothing happens! Does anybody know what i'm doing wrong? :S

  2. #2
    Fanatic Member
    Join Date
    Jun 2004
    Location
    All useless places
    Posts
    917

    Re: Dataformate Currency using a Gridview

    Can you try with a small 'c' in {0:C}? Though MS is not case sensitive in most cases but in this case I'm not sure. I'll also give it a try.
    EDIT: I tried it. It doesn't make a difference (though the case matters for Date formats as it gives you different values for different case).
    Nothing happens imply that you're able to see the value without any formatting or no values are visible at all?
    Last edited by rjv_rnjn; Jul 16th, 2008 at 12:06 PM.

  3. #3
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Dataformate Currency using a Gridview

    How do you know HtmlEncode is not working and what result are you expecting?

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