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.
ali tuncerPosted Nov 30, 2016, 8:20 PM
You can consider absolute value functions, they return positive value
https://msdn.microsoft.com/en-us/library/ms189800.aspx