TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Anand Solomon
NA
20
0
Decimal formatting within Gridview control
Dec 26 2019 10:13 AM
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
Reply
Answers (
1
)
how to create an MSG file from HTML formatted body
application running in local but not on live !