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

RadGrid Format String

0 Answers 158 Views
Grid
This is a migrated thread and some comments may be shown as answers.
License
Top achievements
Rank 1
License asked on 15 Dec 2011, 03:38 PM
Is there anywhere that shows a general breakdown on the syntax of how to do format string in the RadGrid. I'd prefer to keep this out of the code behind databound event. I figured out how to do basic currency, however I want negatives to display with parenthesis instead of a minus symbol.

For example: (224,563.30) instead of -224,563.30

Here is one of the columns from my grid.:
<telerik:GridBoundColumn DataField="warehouse_249000" HeaderText="249000" UniqueName="warehouse_249000" DataFormatString="{0:$###,##0.#0}"></telerik:GridBoundColumn>

Normally, if I was using a repeater I would use something like "$#,##0.#0;($#,##0.#0);$#,##0.#0". What's the syntax for doing this with the RadGrid?

No answers yet. Maybe you can help?

Tags
Grid
Asked by
License
Top achievements
Rank 1
Share this question
or