This question is locked. New answers and comments are not allowed.
According to the following article, if you want to format the max number of decimal places to say 4, but have it chop off trailing zeros 0, you use something like this:
http://www.csharp-examples.net/string-format-double
But it doesn't remove the trailing zeros. I need to really save space in this grid, it has like over 10 rate columns that need to be displayed. In most cases the rates only go to 2 or 3 places, but a few of them need 4.
Steve
columns.Bound(p => p.Rate).Width(52).Format(
"{0:####.####}"
)
But it doesn't remove the trailing zeros. I need to really save space in this grid, it has like over 10 rate columns that need to be displayed. In most cases the rates only go to 2 or 3 places, but a few of them need 4.
Steve