当前位置:编程学习 > C#/ASP.NET >>

这是怎么了

--------------------编程问答-------------------- 绑定错了吧,是不是绑定的row数组啊 --------------------编程问答-------------------- 你绑定的数据源是什么...修改下 --------------------编程问答-------------------- 绑定的数据源错了 --------------------编程问答-------------------- 开始都还好好的。之后删除了一些东西,就不可以啦 --------------------编程问答-------------------- 指定Combobox的DisplayMember、ValueMember属性,不过好像拟制定了的
--------------------编程问答-------------------- DataSet ds1 = sqlhelper.RunQuery(string.Format("select  *  from  checkingInfo"));
            this.comboBox1.DisplayMember = "cName";
            this.comboBox1.ValueMember = "cId";
            this.comboBox1.DataSource = ds1.Tables[0]; --------------------编程问答-------------------- 没错吧,,,, --------------------编程问答--------------------
引用 6 楼 v199294 的回复:
DataSet ds1 = sqlhelper.RunQuery(string.Format("select  *  from  checkingInfo"));
            this.comboBox1.DisplayMember = "cName";
            this.comboBox1.ValueMember = "cId";
            thi……

没错啊。。checkingInfo里没有那两个字段啊
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,