日期:2014-05-18 浏览次数:21851 次
private void dataGridView1_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e)
{
if (e.ColumnIndex == 1)//改成你的列索引
{
e.CellStyle.Format = "0.####";
}
}
------解决方案--------------------
this.Column1.DefaultCellStyle.Format="0.####";
------解决方案--------------------
这东西更多的说明
http://msdn.microsoft.com/zh-cn/f9x2790s(vs.85).aspx