//datagridview设置默认单元格格式用以显示特定时间格式 dataGridView1.Columns["时间"].DefaultCellStyle.Format = "yyyy-MM-dd hh:mm:ss";