如何将图像绑定到列表视图 [英] How to bind the images to List View

查看:71
本文介绍了如何将图像绑定到列表视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



在我的应用程序中,我将用户图像以二进制格式存储在MYSQL中.我想显示带有图像的用户列表.

我正在从数据库检索信息到DataTable.如果我将此表绑定到ListView控件,则除了图像列"之外,它都显示正常.

用户ID用户名图像
===============================
1 ABC<二进制数据>
2 BBC<二进制数据>

谁能建议我如何将图像绑定到列表视图.

Hi,

In my application i am storing user images in MYSQL in binary format. I want show user list with images.

I am retriving information from database to DataTable. If i bind this table to ListView Control it showing fine except Image Column.

User Id UserName Image
================================
1 ABC <Binary Data>
2 BBC <Binary Data>

Can any one please suggest me How to bind the images to List View.

推荐答案

这里是另一种可能的资源供您尝试.似乎为他们工作了.
http://social.msdn.microsoft.com /Forums/zh-CN/wpf/thread/bbee4a78-fd4a-402c-9c56-aba51946458c/ [
Here is another possible resource for you to try. Seems to have worked for them.
http://social.msdn.microsoft.com/Forums/en-US/wpf/thread/bbee4a78-fd4a-402c-9c56-aba51946458c/[^]


这篇关于如何将图像绑定到列表视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆