来自数据库的ListView绑定图像

问题描述:

是否可以以Windows形式

Is it possible to bind Images from Database to a ListView like ( show all the students in a class with their name etc ) in windows form

是的,将数据库中的图像绑定到ListView上(例如,显示班上所有学生的姓名等).将图像添加到ListView很有可能.
参见
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/ListViewCountryimageandfont.htm [ ^ ]
http://msdn.microsoft.com/en-us/library/aa983754%28v = vs.71%29.aspx [ ^ ]

但是,在WPF中这样做更加容易和整洁.
Yes. adding images to a ListView is quite possible.
See
http://www.java2s.com/Code/CSharp/GUI-Windows-Form/ListViewCountryimageandfont.htm[^]
http://msdn.microsoft.com/en-us/library/aa983754%28v=vs.71%29.aspx[^]

However, its much easier and neater to do in WPF.