Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3273

Re: Format oGrid Column values with commas

$
0
0

Hi Weynard,

 

If it's imperative to have commas, then you should use nvarchar and format the value. If your quantity is an int you'll never have decimal places, so you can cast(column as nvarchar(11)). This will give you a string that represents your int (without any decimal places). If you need to add decimal places after, concatenate the decimal places to the string using a comma as the separator cast(column as nvarchar(11) || ',' || 'decimal_places'.


Best regards,

Pedro Magueija


View Pedro Magueija's profile on LinkedIn


Viewing all articles
Browse latest Browse all 3273

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>