Custom Format Strings for BoundField column

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Adam Right

    Custom Format Strings for BoundField column

    in gridview how can i custom format a decimal value for BoundField column ?

    i want to set
    125.25000 ---125,25
    5.20000 -->5,2
    45.00000 --45

    I am using DataFormatStrin g="{0:#,#.##} " but it does not work ..

    any idea ?


  • Eliyahu Goldin

    #2
    Re: Custom Format Strings for BoundField column

    Set HtmlEncode=fals e;

    --
    Eliyahu Goldin,
    Software Developer
    Microsoft MVP [ASP.NET]



    "Adam Right" <AdamRightwro te in message
    news:uN%232Hiab IHA.4344@TK2MSF TNGP02.phx.gbl. ..
    in gridview how can i custom format a decimal value for BoundField column
    ?
    >
    i want to set
    125.25000 ---125,25
    5.20000 -->5,2
    45.00000 --45
    >
    I am using DataFormatStrin g="{0:#,#.##} " but it does not work ..
    >
    any idea ?
    >
    >

    Comment

    • Adam Right

      #3
      Re: Custom Format Strings for BoundField column

      Thanks Eliyahu ..


      Comment

      Working...