标题:[求助]请问各位大侠DataGridView怎么在一列中显示图片
只看楼主
boojum
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-1-21
 问题点数:0 回复次数:1 
[求助]请问各位大侠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
...
因为我行都是文本类型,现在要让其中的两例是图片.怎么改代码啊?

搜索更多相关主题的帖子: String DataGridView Dim 大侠 
2007-03-24 03:44
boojum
Rank: 1
等 级:新手上路
帖 子:21
专家分:0
注 册:2007-1-21
得分:0 
自已顶个,问题还没解决

从菜菜鸟开始学起...
2007-03-24 14:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-126324-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.544691 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved