如何在 Infragistics.Win.UltraWinGrid 中添加图像列表?
过去,我使用 Listview 并使用下面的代码可以显示特定 memId 的特定图像。但现在我需要用 Infragistics.Win.UltraWinGrid 替换 listview 问题出现了我如何显示超级网格的图像。
For Each LItem As ListViewItem In Me.dvParticipants.Items
If CInt(LItem.SubItems(2).Text) = memid Then
LItem.ImageIndex = imageindex
End If
Next
请建议。
In past, I am using Listview and using below code can show a particular image for particular memId. But now I need to replace listview with Infragistics.Win.UltraWinGrid
problem arise how i show image for ultragrid.
For Each LItem As ListViewItem In Me.dvParticipants.Items
If CInt(LItem.SubItems(2).Text) = memid Then
LItem.ImageIndex = imageindex
End If
Next
Please suggest.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想您会想要为网格的特定列设置图像。我会在网格的 InitializeRow 事件中执行此操作。这是一个示例:
I think you will want to set an image for a specific column of your grid. I would do this in InitializeRow event of the grid. Here is a sample: