How to intially set a bound combo box value to null

  • Thread starter Thread starter Daniel
  • Start date Start date
D

Daniel

I have a number of combo boxes that are bound to lookup tables.



Whenever the user enters the form the initial value will always be set to
the first value that is in the bound table, so it looks as though a value
has already been selected. Even when setting the selectedindex property
to -1.



Does anyone know how to intially set a bound combo box so that the first
value is not automatically selected?



Thanks,





Daniel
 
Thanks Claes,

I have set all combo boxes selected indexes to -1 twice as the knowledge
base suggests, but the problem remains. Stepping through the code, the
seleted index is actaully set to -1 but it is still displaying the 0 index
value.

Any other ideas?

Cheers,

Daniel
 
Thank you claes,

My form was on a tab page, setting the binding context resolved the problem.


Best regards,

Daniel
 
Back
Top