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
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
0
Hello Saurabh,
Please modify your DataFormatString property this way:
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.
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
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
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.
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
I see why my "0" values were not getting displayed.
Regards,
Saurabh