数据绑定中的特殊问题!!!
string typeName = this.cbDep.SelectedValue.ToString().Trim();MessageBox.Show(typeName);
SqlData sd = new SqlData();
string typeId = sd.ExeSca("select TypeId from Type_Course_Province where TypeName='"+typeName+"'");
DataSet ds= sd.ExeDS("select *from TypeDetails where TypeId='" +typeId+ "'");
this.cbClass.DataSource = ds; //cbClass为ComboBox控件
this.cbClass.DisplayMember = "Table.ContentItem";
this.cbClass.ValueMember = "Table.Id";
我怎样才能获取 this.cbClass.ValueMember 绑定的值! --------------------编程问答-------------------- ValueMember 属性应该是set get都有的吧 你取一下试试看
补充:.NET技术 , C#