21
Possible Duplicate:
.NET String.Format() to add commas in thousands place for a number
How to format a number 1234567 into 1,234,567 in C#?
Possible Duplicate:
.NET String.Format() to add commas in thousands place for a number
How to format a number 1234567 into 1,234,567 in C#?
var decimalValue = 1234567m;
var value = String.Format("{0:N}", decimalValue); // 1,234,567.00
or without cents
var value = String.Format("{0:N0}", decimalValue); // 1,234,567