Formatting Currency in DataGrid

DeandreBitter

New Member
I am specifying my own columns and I have a data field that outputs currency. I was thrilled to see that I can format my data to currency by doing this<BR><BR><columns><BR><asp:BoundColumn DataField="Amount" HeaderText="Amount" DataFormatString="{0:C}"></asp:BoundColumn><BR></columns><BR><BR>BUT!!! if it's negative the amount gets displayed in parenthesis, I want the dash! how would you format "{0:C}" to change the negative number format for currency?<BR><BR>anyone know?<BR><BR>thanksGlobalization.NumberFormatInfo.CurrentInfo.Currenc yNegativePattern<BR><BR>That's where the value is stored. But at runtime that's read-only. How do I change it?
 
Back
Top