weird listbox problem

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
 
M

Matt Berther

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,679
Members
48,796
Latest member
Greg L.

Latest Threads

Top