Hey guys,
Ok, this is really messing with my head. I have a list box. This list box has some items in it. If an item is clicked, it grabs subordinate items, clears the listbox, and re-fills it with the new items. Problem is, after the first fill, it ALWAYS sees index 0 as the selected index, even though you could click any other item! There is no code that explicitly sets the selected index to 0, so I am totally stumped. We've worked with listboxes before without any probs, and this just...stumps me! Any thoughts, or known listbox issues with postbacks, viewstates, etc.?
Thanks,
Jack
Ok, this is really messing with my head. I have a list box. This list box has some items in it. If an item is clicked, it grabs subordinate items, clears the listbox, and re-fills it with the new items. Problem is, after the first fill, it ALWAYS sees index 0 as the selected index, even though you could click any other item! There is no code that explicitly sets the selected index to 0, so I am totally stumped. We've worked with listboxes before without any probs, and this just...stumps me! Any thoughts, or known listbox issues with postbacks, viewstates, etc.?
Thanks,
Jack