开发者

Gridview Trim Error in ASP.NET

This is my reference question; String.Format Same Code Different View

When i try this code;

var cultureWithoutCur开发者_Go百科rencySymbol =
        (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;

Gridview Trim Error in ASP.NET

How can i solve this problem? Is it something wrong in my code?


Since you want currency without symbol why don't simply use:

sumVM.ToString()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜