I currently display 3 numbers like this
1 567,90
1 234,00
1 235,00
Using the following line of code
<b class='dash-main-val'> {String.Format("{0:N}", info.Rows[rowCountX][columnNames[0]])
I want to keep the spacing when it reaches 1000s, but I do not want to display the ,00 if there's no decimal. Is there a way of having the decimal be optional and dynamic as possible as it is coming from a Datatable?