如题。datagridview的背景色如果不设为透明的话好难看。
------解决方案--------------------
For i As Integer = 0 To dataGridView.Rows.Count - 1
dataGridView.Rows(i).DefaultCellStyle.BackColor = Colors.Transparent
Next
------解决方案--------------------
- VB.NET code
DataGridView1.DefaultCellStyle.BackColor = Color.Transparent