V
vijai thoppae
Hello..
I'm having a strange problem with the comboxbox with DataSource & using
DisplayMember,ValueMember properties. The problem is if i supply a item
which is not in the DataSource array List i'm explicitly calling
SelectedIndex = -1 twice(as per Documentation in MS web site) to show empty
selection. When i visit the form for the 1st time it selects the 0th index
by default ,on subsequent visits it displays correctly. Rightnow with a
workaround i'm refreshing the sameform twice to make it work. Is there a
real reason for this problem. I guess its a bug when we use DataBinding. In
the case of normal ComboxBox using AddRange it displays correctly.
Any comments pls.?
Thanks,
Vijai
I'm having a strange problem with the comboxbox with DataSource & using
DisplayMember,ValueMember properties. The problem is if i supply a item
which is not in the DataSource array List i'm explicitly calling
SelectedIndex = -1 twice(as per Documentation in MS web site) to show empty
selection. When i visit the form for the 1st time it selects the 0th index
by default ,on subsequent visits it displays correctly. Rightnow with a
workaround i'm refreshing the sameform twice to make it work. Is there a
real reason for this problem. I guess its a bug when we use DataBinding. In
the case of normal ComboxBox using AddRange it displays correctly.
Any comments pls.?
Thanks,
Vijai