This project has moved and is read-only. For the latest updates, please go here.

Format Negative Numbers In Parenthesis

Oct 17, 2016 at 7:08 AM
Hello, I am trying to get negative numbers in parenthesis.

for e.g.
10.30 ===> 10.30
-10.30 ===> (10.30)

I tried with below syntax but still not get right format.
ws.Cells[].Style.Numberformat.Format = "(#,##0.00)";

Kindly help me. Thanks.