[求助]请问各位大侠DataGridView怎么在一列中显示图片
如图,我想在第二列和第三列中,将那些方块用图片代替了去.不知道具体怎么写
代码段如下:
....
Dim row0 As String() = {"0", MkL0, MkR0, "0", "0"}
Dim row1 As String() = {"1", MkL1, MkR1, Wti1, S2}
Dim row2 As String() = {"2", MkL2, MkR2, Wti2, S4}
Dim row3 As String() = {"3", MkL3, MkR3, Wti3, S4}
Dim row4 As String() = {"4", MkL4, MkR4, Wti4, S2}
Dim row5 As String() = {"5", MkL5, MkR5, Wti5, S1}
Dim row6 As String() = {"6", MkL6, MkR6, Wti6, S3}
Dim row7 As String() = {"7", MkL7, MkR7, Wti7, S3}
Dim row8 As String() = {"8", MkL8, MkR8, Wti8, S1}
' Add a row for each string array.
With Me.dgvMoment.Rows
.Add(row0)
.Add(row1)
.Add(row2)
.Add(row3)
.Add(row4)
.Add(row5)
.Add(row6)
.Add(row7)
.Add(row8)
End With
...
因为我行都是文本类型,现在要让其中的两例是图片.怎么改代码啊?