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

How to display float number in radgrid

4 Answers 215 Views
Grid
This is a migrated thread and some comments may be shown as answers.
york
Top achievements
Rank 1
york asked on 20 Jul 2011, 04:21 AM
Hi,
I want to display percentage as float number with 2 digit for fraction and a % sign after that in radgrid. How to do it? Thanks.

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 20 Jul 2011, 05:46 AM
Hello York,

In order to achieve this, you can set the DataFormatString property as shown below.

aspx:
<telerik:GridBoundColumn UniqueName="Freight" HeaderText="Freight" DataField="Freight"  DataFormatString="{0:##.##%}">
</telerik:GridBoundColumn>

Thanks,
Princy.
0
york
Top achievements
Rank 1
answered on 20 Jul 2011, 06:07 AM
what is ##?

0
Accepted
Jayesh Goyani
Top achievements
Rank 2
answered on 20 Jul 2011, 07:18 AM
Hi,

please check "custom number formatting" in this site http://idunno.org/archive/2004/07/14/122.aspx

Thanks,
Jayesh Goyani
0
Accepted
Princy
Top achievements
Rank 2
answered on 20 Jul 2011, 08:43 AM
Hello York,

I recommend that you examine the following link also.
Custom Numeric Format Strings.

Thanks,
Princy.
Tags
Grid
Asked by
york
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
york
Top achievements
Rank 1
Jayesh Goyani
Top achievements
Rank 2
Share this question
or