how to format the value in currency format in gridview
<pre><code>protected void LineItemGrid_RowDataBound(object sender, GridViewRowEventArgs e)
{
     Label lbl3 = (Label)e.Row.FindControl("lbltotal");
     if (lbl3 != null)
     {
         lbl3.Text = college.Student.Activity[e.Row.RowIndex].Mark1.ToString();
         total += decimal.Parse(lbl3.Text);
     }
}
</code></pre>

<p>In the aspx page</p>

<pre><code>&lt;asp:TemplateField HeaderText="Total"  HeaderStyle-Font-Bold="true" ItemStyle-HorizontalAlign="Right" HeaderStyle-Width="120px" HeaderStyle-HorizontalAlign="Right"&gt;
</code></pre>

<p>
  
  
 </p>

  
   
    
           
    
  
  

<p>
  </p>
