How to use DataFormatString?

Discussion in 'ASP .Net' started by Paulo, May 14, 2008.

  1. Paulo

    Paulo Guest

    Hi, can you help me how to display R$ 2,80 on the GridView BoundField?

    The data comes from a DataBase, but it shows me: 2,8000

    I want to display R$2,80 wich is the currency of my country! What is the
    DataFormatString property of the column?

    Thank you!
    Paulo, May 14, 2008
    1. Advertisements

  2. Paulo

    Paulo Guest

    I tried it and shows always R$0,00 on the rows...
    Paulo, May 14, 2008
    1. Advertisements

  3. Paulo,

    Try {0:C2} (have in mind it applies the current locale currency).

    Milosz Skalecki [MCAD], May 14, 2008
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.