weird listbox problem

  • Thread starter Thread starter Dean
  • Start date Start date
D

Dean

I've been using listboxes for a long time with no problems but I have a
weird problem on a page that I can't figure out....

I'm filling a listbox, as usual with a dataset but when the user selects
some entries, other entries get returned instead of the one selected. Also,
some items in the list don't trigger the SelectedIndexChanged event and this
is repeatable - the same items always fail to generate an event. All of
this seems to start after about the 200th entry in the listbox.

Does anyone have a clue as to what could cause this?
Thanks,
Dean
 
Hello Dean,
I'm filling a listbox, as usual with a dataset but when the user
selects some entries, other entries get returned instead of the one
selected. Also, some items in the list don't trigger the
SelectedIndexChanged event and this is repeatable - the same items
always fail to generate an event. All of this seems to start after
about the 200th entry in the listbox.

I ran into a similar issue and what was happening for me was that the ValueMember property didnt contain unique values. It appears that the SelectedIndexChanged event only gets fired if the <option value=""> portion is unique.
 
Back
Top