Manuel Joseph

Manuel Joseph

  • NA
  • 35
  • 126.9k

Asp.net gridview $Sign add column values

Apr 3 2012 7:25 AM


Hi,

        I want to  add $Sign in my gridView column, I am using below code how to Dataformat string .  Where can i apply this code

DataFormatString="{0:C}" HtmlEncode="false" and how to apply this code


<
asp:TemplateField HeaderText="currentbalance">


<ItemTemplate>

<%


# Eval("currentbalance") %></ItemTemplate>


<EditItemTemplate>


<asp:TextBox runat="server" CssClass="txt" ID="Editcurrentbalance" Text='<%# Bind("currentbalance") %>' />


</EditItemTemplate>


</asp:TemplateField>


<asp:TemplateField HeaderText="minimumbalance">


<ItemTemplate>

<%


# Eval("minimumpayment")%></ItemTemplate>


<EditItemTemplate>


<asp:TextBox runat="server" CssClass="txt" ID="Editminimumbalance" Text='<%# Bind("minimumpayment") %>' />


</EditItemTemplate>


</asp:TemplateField>

Answers (1)