Databinding to a combobox

G

Guest

Hey,

I try to bind a datasource to my combobox. The datasource is an array of objects.

Then I set the cmb01.displaymember = "Propertyname1".
Till here everything works fine.
But then I will also set the valuemember like this :
cmb01.ValueMember = "PopertyName2".

At runtime I receive always following exception :

"Could not bind to new display member. Parametername is newdisplaymember"


What will this mean? And how I have to resolve it?

Tkx,
Jac
 
G

Guest

Sorru, thats the message I receiving now. It is a system.argumentexception
{"Could not bind to the new value member.\r\nParameter name: value"
I don't find a solution for this

tkx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top