DataGridView隔行显示不同的颜色
摘要:
如果该dataGridView是跟数据库绑定的,则可以触发DataBindingComplete事件:View Code 1 if (this.dataGridView1.Rows.Count!= 0) 2 { 3 for (int i = 0; i < this.dataGridView1.Rows.Count; i++) 4 { 5 if (i % 2 == 0) 6 { 7 ... 阅读全文
posted @ 2012-05-31 08:43 林尚轩 阅读(308) 评论(0) 推荐(0) 编辑