回复 12楼iceman的帖子
- FarPoint.Web.Spread.CurrencyCellType cc = new FarPoint.Web.Spread.CurrencyCellType("货币样式:123.45");
- System.Globalization.CultureInfo cl = new System.Globalization.CultureInfo("");
- cl.NumberFormat.CurrencySymbol = "";
- cl.NumberFormat.CurrencyNegativePattern = 1;//允许货币值显示为负值;
- cl.NumberFormat.CurrencyPositivePattern = 1;//正值正常显示;
- cl.NumberFormat.CurrencyGroupSeparator = ",";
- cl.NumberFormat.CurrencyDecimalSeparator = ".";
- cl.NumberFormat.CurrencyDecimalDigits =2;
- cc.NumberFormat = cl.NumberFormat;
- FpSpread1.ActiveSheetView.Cells[0, 0].CellType = cc;
复制代码
设置完类型后,在火狐下可以正常输入,为什么在IE下,输入完,就会提示错误(货币样式:123.45)呢? |