vb.net datagridview 奇数行偶数行显示不同的背景色

来源:互联网 发布:php与mysql web开发五 编辑:程序博客网 时间:2024/05/01 21:18
‘设置表格背景色  
DataGridView1.RowsDefaultCellStyle.BackColor = Color.Yellow    
’设置交替行的背景色  
DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Red  
原创粉丝点击