VB.NET斑马线

VB.NET斑马线,vb.net,Vb.net,我想在表格中“画”斑马线 不是桌子,只是台词 黑色 白色 黑色 白色 我可以导入背景图像,但我更喜欢代码:) )() 用于datagridview VB.NET的Zebra DataGridView1.GridColor = Color.Blue DataGridView1.DefaultCellStyle.ForeColor = Color.Black DataGridView1.RowsDefaultCellStyle.BackColor = Color.Red DataGr

我想在表格中“画”斑马线

不是桌子,只是台词
黑色
白色
黑色
白色


我可以导入背景图像,但我更喜欢代码:)

)()

用于datagridview VB.NET的Zebra

 DataGridView1.GridColor = Color.Blue
 DataGridView1.DefaultCellStyle.ForeColor = Color.Black 
 DataGridView1.RowsDefaultCellStyle.BackColor = Color.Red
 DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Yellow
 DataGridView1.GridColor = Color.Silver

这是WinForm项目吗?文本是如何显示的?我们无法回答您的问题,因为您没有告诉我们您在做什么。你在说什么?winForms控制某种类型的报表—gridview、ASP.NET、winForms、WPF或其他?到目前为止你都尝试了什么?是的,WinForm我想在项目背景中加入斑马线
 DataGridView1.GridColor = Color.Blue
 DataGridView1.DefaultCellStyle.ForeColor = Color.Black 
 DataGridView1.RowsDefaultCellStyle.BackColor = Color.Red
 DataGridView1.AlternatingRowsDefaultCellStyle.BackColor = Color.Yellow
 DataGridView1.GridColor = Color.Silver