博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

dataGridView 格式

Posted on 2011-04-06 22:41  moss_tan_jun  阅读(252)  评论(1编辑  收藏  举报
 
 
this.dataGridView1.Columns["UnitPrice"].DefaultCellStyle.Format = "c";
this.dataGridView1.Columns["ShipDate"].DefaultCellStyle.Format = "d";