combo box values not set

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,
I have a combo box that I want to populate, based on the selection of
another combo box.

So when combo box A is selected, combo box B is populated with related values.

I have this all working fine, except for on the forms loading. I have
combobox B being populated after combobox A_SelectedIndexChanged event fires.

However, on the form load, when I try to retrieve the value from
"selectedvalue" , field, it is giving me "System.Data.DataRowView". that is
the field isnt populated.

I dont understand why there is no value if the selectedindex changed event
is firing?

Can someone advise how I should be handling this. Even when the combo box
isnt yet populated, the selected index is showing as zero?.

thanks
 
Ausclad,

This are probably very old issues with the combobox.
There are more solutions.
You protect the event with a boolean by that you set to true in the load
event or you set the handlers dynamicly at the end of that load event.

By instance the first is than in the event

\\\\
comboBoxIndexChangeEvent
if swLoaded then
'do what has to be done in this event
end if
end sub
///

I hope this gives an idea,

Cor
 
Back
Top