问题
This is my reference question; String.Format Same Code Different View
When i try this code;
var cultureWithoutCurrencySymbol =
(CultureInfo)CultureInfo.CurrentCulture.Clone();
cultureWithoutCurrencySymbol.NumberFormat.CurrencySymbol = "";
GridView1.FooterRow.Cells[9].Text = String.Format(cultureWithoutCurrencySymbol, "{0:c}", sumMV).Trim();
I gettin an error like this;

How can i solve this problem? Is it something wrong in my code?
回答1:
Since you want currency without symbol why don't simply use:
sumVM.ToString()
来源:https://stackoverflow.com/questions/5712356/gridview-trim-error-in-asp-net