How to display amount values with just a decimal point, comma seperators and a leading hyphen for negative values but with no dollar sign in a GridView in ASP.NET?
Posted on 2013-12-04
I am developing my first ASP.NET application in C# using VS2010.
I placed a (Data) GridView control on a Web Form.
For one of the fields titled AMT, this field that has an amount value and I just
want it to display the "Decimal point" and "Comma separator" as the DataFormatString.
How would I display the field in the GridView with just a decimal point and (thousands) comma separator. I don't want the dollar sign. And for negative amounts, I want to precedie the amount with a dash.