I have a decimal in .NET and I need to store it to a column in a typed dataset that is a string. I need the decimal to be stored to two decimal places. Even though I use Math.Round(value,2) and I do a ToString(), it doesnt work.
Any ideas and suggestions are appreciated!
You need to do
decimalVar.ToString ("#.##");or
See .NET Format String Cheat Sheets