What would be the easiest way to convert a decimal to string, and add a comma and spaces. It has to convert land parcels area, in square meters. It can be 1456, 25678, 364789 or 2548978 m².. It depends on the size of the parcel. I'd like to convert it to obtain this result :
1456 = 1 456,0
25678 = 25 678,0
364789 = 364 789,0
2548978 = 2 548 978,0..
I tried this :
myvalue = Convert.ToDecimal(MyFeature.Value(MyFeature.Fields.FindField("MyAreaField"))).ToString("# ### ###,0")
But 312410 gave this result : 31 2 410
Can you help me please?