Binding nullable value to combobox

B

Bob Rundle

I'm binding a ComboBox to a field in a DataRow. I am loading the combobox
with values from an Enum. I am building to the "SelectedItem" property.
Everything works find except that I want to display (None) in the combo box
when the field is null. Is there a way to do this? I tried setting the
default value in the XML Schema, but this did not help.

Regards,
Bob Rundle
 
M

Miha Markic [MVP C#]

Hi Bob,

AFAIK is not possible out of the box.
You could use custom drawing probably or use some 3rd party control.
 

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

Similar Threads


Top