title: asp.net gridview item template format currency
body: <blockquote>
    <p>Possible duplicate <a href="https://stackoverflow.com/questions/275194/formatting-databinder-eval-data">Formatting DataBinder.Eval data</a></p>
  </blockquote>
  
  <p>i want to change the format of an item template in a gridview, i want to show the currency..</p>
  
  <p>this is my code:</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Monto"&gt;
                  &lt;ItemTemplate&gt;&lt;%# Eval("Monto")%&gt;&lt;/ItemTemplate&gt;
                  &lt;EditItemTemplate&gt;
                  &lt;asp:TextBox runat="server" ID="txtMonto" Text='&lt;%# Eval("Monto", "{0:C2}")%&gt;' /&gt;&lt;%-- Eval("Price", "{0:C2}")--%&gt;
                  &lt;/EditItemTemplate&gt;
                  &lt;FooterTemplate&gt;
                  &lt;asp:TextBox ID="txtfooterMonto" runat="server"&gt;&lt;/asp:TextBox&gt;                        
                  &lt;asp:RequiredFieldValidator runat="server" id="rfvMonto" controltovalidate="txtfooterMonto" Display="None" 
                  errormessage="Monto" ValidationGroup="InsertValidationControls"/&gt; 
                  &lt;/FooterTemplate&gt; 
              &lt;/asp:TemplateField&gt;
  </code></pre>