将字典绑定到DataGridView [英] Binding Dictionary To DataGridView

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

问题描述

我一直在尝试创建一个在过去2天中实现IBindingList的字典,但我似乎无法正常工作...有人可以将我指向实现IBindingList并绑定字典的示例吗?到dataGridView.

预先感谢,
-DA

i''ve been trying to create a dictionary that implements IBindingList for the last 2 days and I can''t seem to get it working...can someone please point me towards an example that implements IBindingList and binds a dictionary to a dataGridView.

Thanks in advance,
-DA

推荐答案

您可以查看以下内容:http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/34be21b1-5673-42a3-86b5-911a5a94a75c [ ^ ].

将字典转换为BindingList似乎不是任何简单的方法,所以猜测您需要使用foreach循环.
You can look at the following: http://social.msdn.microsoft.com/Forums/en-US/winformsdatacontrols/thread/34be21b1-5673-42a3-86b5-911a5a94a75c[^].

Does not appear to be any easy way to convert dictionary to BindingList, so guess you need to use a foreach loop.


这篇关于将字典绑定到DataGridView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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