Binding nullable value to combobox

  • Thread starter Thread starter Bob Rundle
  • Start date Start date
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
 
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

Binding to a ComboBox 2
combobox binding problem 3
Binding a ComboBox 2
Combobox and Nullable Enum 1
Databinding Combobox 3
binding nullable property 1
Creating a databound ComboBox 2
ComboBox events 1

Back
Top