Hi All, This is not question, just a quick tip, Today I have spent few hours for fix issue, format currency with parentheses instead of negative number. There are two ways. 1.easy and simple <asp:BoundField HeaderText="Member Discount" DataField="DiscountPer" DataFormatString="{0:#,##0.00;(#,##0.00);0}"
ItemStyle-HorizontalAlign="Right" />2.add few extra work, <asp:TemplateField HeaderText="Member Discount ">
<ItemTemplate>
<asp:Label ID="Label1" runat="server" Text='<%# Convert.ToString(Eval("DiscountPer","{0:c}")).Replace("$", "") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>Hope save your time. |