Hi,
I use the ComboEditor with the properties "datasource", "valuemember" and "displaymember", no other databindings.
If the displaymember is "" or null in the DataTable, the editor suddenly shows the value of the valuemember.
How can I prevent the ComboEditor from doing this?
If no display value is in the DataTable, it should display an empty editor field and not the internal ID.
Valuemember is an Int32, DisplayMember is a Varchar(30) (MySQL DB with .Net Connector).
Regards
I tetsed this out and I am getting the same result. I expect that this has to do with how the control deals with nulls or empty strings internally.
You are probably right that the control should display null or an empty string and not display the ValueMember, but I don't think this is something that could be changed at this point. Or at the very least, we would have to add a property that you would set to change the behavior.
In the mean time, I recommend that you use a single space character (" ") instead of null.