Datagridview单元格的背景图像

时间:2012-10-10 20:21:48

标签: datagridview cell

是否可以使用图像(位图)设置datagridview单元格的背景?

1 个答案:

答案 0 :(得分:2)

请看下面的功能:

Private Sub DataGridView1_RowPostPaint(sender As Object, e As System.Windows.Forms.DataGridViewRowPostPaintEventArgs) Handles DataGridView1.RowPostPaint

End Sub

OR

 Private Sub DataGridView1_CellPainting(sender As Object, e As System.Windows.Forms.DataGridViewCellPaintingEventArgs) Handles DataGridView1.CellPainting

 End Sub
相关问题