PDA

View Full Version : ComboBox, can`t lose focus


salorob
01-11-2010, 06:52 AM
Hi All,

been struggeling with this issue for quite some time now. I`ve got aan combobox on a detailform.

Detailform is bound to databindingsource
Combobox is also bound to databindignsource.

De detailform is opened bij the dubbelclicking a record in a GridView, wich parses the DataSet, and position to de New() function of the form: that sets the DetailForm`s databindingsources, and the position.

De Load function of the form 'Fills' the combobox, and a pair of datagridviews. These work fine bytheway.

The combobox is then also DataBound, to an other databindingsource, bij value and description. The problem is i cannot select something else, after i tried to change the Combobox value by selecting an item from the dropdownlist. When i disable 'CausesValidation' i can leave the field, but nothing is saved then.

Can anyone say what i`m doing wrong?

I think it has something to do with how i bind, and databound the fields but honestly, i dont know what anymore.

Thanks, Salorob

salorob
01-11-2010, 06:54 AM
forgot to mention: i CAN leave the field and save it, if i manually TYPE the ID of the -to be selected- value.