使用C#为WPF填充组合框的正确方法 [英] Correct method to populate combo box for wpf using C#

查看:142
本文介绍了使用C#为WPF填充组合框的正确方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我一直在大量研究如何填充组合框.此链接http://stackoverflow.com/questions/8850325/how-to-populate-a-combobox-from-a-dataset.全部显示了

I have been googling a lot on how to populate combo boxes for eg. this link http://stackoverflow.com/questions/8850325/how-to-populate-a-combobox-from-a-dataset. All shows this 

comboBox2.DataSource=dv;

But when I tried in vs2015 the option of DataSource does not exist when I type my combobox name? So what is the correct method

?

推荐答案

我一直在仔细研究如何填充组合框,例如.此链接http://stackoverflow.com/questions/8850325/how-to-populate-a-combobox-from-a-dataset.全部显示了
I have been googling a lot on how to populate combo boxes for eg. this link http://stackoverflow.com/questions/8850325/how-to-populate-a-combobox-from-a-dataset. All shows this 
comboBox2.DataSource=dv;

But when I tried in vs2015 the option of DataSource does not exist when I type my combobox name? So what is the correct method

?

http://www.dotnetperls.com/combobox-wpf

http://www.dotnetperls.com/combobox-wpf


这篇关于使用C#为WPF填充组合框的正确方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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