I have a gridview control with a item template column as
- <asp:TemplateField HeaderText="TOTAL FEE">
- <ItemTemplate>
- <asp:Label ID="LTFEE" runat="server" Text=""></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
on code behind I want to format the column with indian currency with 2 decimal places. I tried this code in RowDataBound event, but it does not format the column.
- (e.Row.FindControl("LTFEE") as Label).Text = string.Format("{0:n2}", DataBinder.Eval(e.Row.DataItem, "TFEE").ToString());
What I did wrong, please help me in this regard Thank u