数据库中表userport的pwd列有值,绑定到DATAGRID就可显示,但以下面这种方式绑定到combobox上就是空值,为什么?
this.comboBox1.DataSource=ds2.Tables["userport"];
this.comboBox1.DisplayMember="userport.pwd";
this.comboBox1.ValueMember="userport.pwd";
this.comboBox1.DataSource=ds2.Tables["userport"];
this.comboBox1.DisplayMember="userport.pwd";
this.comboBox1.ValueMember="userport.pwd";
解决方案 »
- FileStream, Access to the path '.....' is denied.
- 带输入表参数的插入存储过程
- DataView读取XML的问题
- DataGridView的数据源问题
- 如何判断指定的EXCEL文件已经打开,如果打开,如何保存关闭?
- 多文档中 我怎么获得一个窗体 然后激活显示当前呢
- 听说有一个调试工具可以显示每个函数花费的时间!!!
- c#中怎么实现null object模式?
- DataSet和DataAdapter更新数据,如何保证某一列的值唯一
- ashx获取JS传值的中文乱码
- c#一个很简单的问题可就是调不过,大家来帮帮忙啊..小弟学习C#时间不长啊!!
- 光盘上有什么信息可以用来唯一标识一个光盘么?
this.comboBox1.DisplayMember="pwd";
this.comboBox1.ValueMember="pwd";