This is a migrated thread and some comments may be shown as answers.

Displaying -ve value

3 Answers 88 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Rajz
Top achievements
Rank 1
Rajz asked on 07 Dec 2010, 12:27 PM
Hello,

Negative values are automatically converted to value enclosed in paranthesis.

How can I display negative values as it is?!

Thank you

Regards
Raj

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Dec 2010, 01:04 PM
Hello Raj,


By default, it is showing negative value without paranthesis when I tried in my end. Have you set any DataFormatString for the column?

Or if you want to add parenthesis, then referring the following forum will be of help.
parentheses for negatives


-Shinu.
0
Rajz
Top achievements
Rank 1
answered on 08 Dec 2010, 06:15 AM
Shinu,

If I enter value like -100 it is displayed as (100) without any formatting!

How do I display -100 as -100 in grid?!

Raj
0
Shinu
Top achievements
Rank 2
answered on 08 Dec 2010, 01:52 PM
Hello,


You can access the actual value and reset the cell value (without formatting applied) from code behind, in ItemDataBound event of grid.
Accessing cells and rows



-Shinu.
Tags
Grid
Asked by
Rajz
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Rajz
Top achievements
Rank 1
Share this question
or