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.
 
Back
Top