开发者

Gridview Trim Error in ASP.NET

开发者 https://www.devze.com 2023-02-26 11:23 出处:网络
This is my reference question; String.Format Same Code Different View When i try this code; var cultureWithoutCur开发者_Go百科rencySymbol =

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

精彩评论

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