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

[Solved] RadGrid not displaying "0" values

4 Answers 300 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Saurabh Srivastava
Top achievements
Rank 1
Saurabh Srivastava asked on 19 Aug 2009, 03:12 PM
Hi,

I have a GridBoundColumn in my grid. The dataformatstring for this is specified as {0:#,###.##}.

This column does not display anything when my datatable has a value of 0. Could you please resolve?

Regards,
Saurabh

4 Answers, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 19 Aug 2009, 03:24 PM
Hello Saurabh,

Please modify your DataFormatString property this way:
DataFormatString="{0:0,###.##}" 

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Saurabh Srivastava
Top achievements
Rank 1
answered on 19 Aug 2009, 08:37 PM
Hi Daniel,

Thanks for the response. But this would not solve my issue entirely. If I specify the dataformatstring mentioned below, my numbers would be fixed to standard format of x,xxx irrespective of whether they are 2, 3 or even 1 digit.

Eg: Zeroes would appear as 0,000 which is not desirable.

Any other alternatives would be really appreciated.

Many Thanks,
Saurabh
0
Accepted
Daniel
Telerik team
answered on 21 Aug 2009, 08:46 PM
Hello Saurabh,

I recommend you examine the following link in MSDN, to familiarize with the custom number format strings:
Custom Numeric Format Strings

I hope this helps.

Regards,
Daniel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Saurabh Srivastava
Top achievements
Rank 1
answered on 24 Aug 2009, 09:30 AM
Many thanks, Daniel.

I see why my "0" values were not getting displayed.

Regards,
Saurabh
Tags
Grid
Asked by
Saurabh Srivastava
Top achievements
Rank 1
Answers by
Daniel
Telerik team
Saurabh Srivastava
Top achievements
Rank 1
Share this question
or