decimal d = 0.000m;
string aa = d.ToString("0.##");
得到结果 0
dgField.DataFormatString = "{0:0.#}";去除多余的0