GridView - Formatting Column RRS feed

  • 問題

  • Hi all,

    I'm new on VS 2005 and I'd like to modify the display of a amout column in GridView to two decimal point.

    Current output as following:-

    Some documents telling to modify output format by DataFormatString. However, nomatter I input {0:d2}    or  {0:c2}  or   {0:f2}  in the DataFormatString.  The output is  same as above, everything unchange

    Current Setting in the amount column of GridView :-
    DataFormatString  {0:d2}
    Read Only               True

    Can anyone teach about that?

    My environment:-
    WinXP SP2
    VS 2005 Team System




    2006年9月25日 上午 08:36