F
Flomo Togba Kwele
I struggled with a problem I had with a combobox bound to a
bindingsource which has as its datasource a collection of custom
objects. The comobobx was bound to a nullable integer property of the
custom object.
When I tried to change the value of the dropdown and tabbed off the
control, the dropdown index would revert back to what it originally
was, so I could not change the value. I placed a breakpoint at the
Leave event of the combobox and single-stepped. It went into the
getter, not the setter!
So I changed the definition of the property in the object bound to the
combobox from Nullable(Of Integer) to Integer and it worked properly.
After the Leave event, it goes into the Setter.
Am I doing something wrong?
bindingsource which has as its datasource a collection of custom
objects. The comobobx was bound to a nullable integer property of the
custom object.
When I tried to change the value of the dropdown and tabbed off the
control, the dropdown index would revert back to what it originally
was, so I could not change the value. I placed a breakpoint at the
Leave event of the combobox and single-stepped. It went into the
getter, not the setter!
So I changed the definition of the property in the object bound to the
combobox from Nullable(Of Integer) to Integer and it worked properly.
After the Leave event, it goes into the Setter.
Am I doing something wrong?