我想通过数据集列绑定组合框。组合框没有绑定
我有以下数据集:
我想通过LOCATIONNAME列绑定组合框。
我使用下面的代码是:
cmbLocation.DataBindings.Add(New Binding("Text", dsLocations, "LocationName"))
但它扔了我以下错误:
Cannot bind to the property or column LocationName on the DataSource. Parameter name: dataMember
请帮助我。
你确定你使用了正确的参数名称替换“的EditValue”? – Kurubaran
是的,我相信 –