我想通過數據集列綁定組合框。組合框沒有綁定
我有以下數據集:
我想通過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
是的,我相信 –