我正在尝试更改数据网格视图上的货币符号,这适用于当地货币(欧元):
DBTotalGrid.Columns(9).DefaultCellStyle.Format = "C"
but I can't change to a dollar sign, the following has no effect:
DBTotalGrid.Columns(8).DefaultCellStyle.FormatProvider = CultureInfo.GetCultureInfo("c", "us")
由于对单元格的值执行计算,因此我无法格式化为字符串。