ToolStripComboBox DataSource [英] ToolStripComboBox DataSource

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

问题描述

我正在使用数据集表绑定到toolstripComboBox。该表有20行。将toolstripComboBox绑定到表后,它的项目数为20.但是没有任何内容显示在其中。我很难过。表格中有四列。我使用一个用于ValueMember,一个用于DisplayMember。我确定这个问题很简单。有人可以帮帮我吗?谢谢!



Curt

解决方案

< BLOCKQUOTE>有趣。你能告诉我们你用来从数据库中获取值并将其绑定到控件的代码吗?您确定没有实现可能清除控件内容的控件事件吗?


I am using a dataset table to bind to a toolstripComboBox. The table has 20 rows in it. After binding the toolstripComboBox to the table it has an item count of 20. But nothing shows up in it. I am stumped. There are four columns in the table. I use one for the ValueMember and one for the DisplayMember. I'm sure this problem is something simple. Can someone help me out ?Thanks!

 

Curt

解决方案

interesting. Can you show us the code you use to get the values from the database and bind it to the control? Are you sure you have not implemented an event of the control which may clear out the contents of the control?


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

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