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
shahnid k
NA
61
15.5k
Convert negative value to positive value in a row of Gridvie
Nov 30 2016 10:42 AM
Hi,
Am calling some datas from database and binding it in gridview. I need one of my row not to display its negative values. I have tried many ways but dint see any proper result to overcome.
I have tried something like this,
string formattedValue = string.Format("{0:$#.##;$-#.##}", sales);
sales is the row which are giving both negative and positive values. I need to display all the values in positive values only. Dont want to update the database table to positive.
Reply
Answers (
1
)
How to convert only particular row and column as dataset?
Attribute Routing vs Convention Routing - ASP.NET MVC