Source: a lot of money values returned from SQL as strings. For example, "1500312.32", "2382938.12", "283727361.10" etc.
The task: display money values in format "1 500 312.32", "2 382 938.12", "283 727 361.10", etc.

Solution:
You can display numeric values in custom formats via namespace "System.Globalization" and its object "CultureInfo".

At first, you need to add "using System.Globalization;" to your code-behind file.

Then you need to create "CultureInfo" object and to override its properties or to create clone and also override them. I advise you to clone CultureInfo object.

And also we need to convert string to double. Don't ask me why it was done so 🙂

The C# code is below