G
Guest
I have a ListBox that uses a DataSource bound to an "ActiveArrayList" class I implemented using CollectionBase and IBindingList
As I add new items to my ActiveArrayList, my ListBox is updated with the new row, but the selected row is always forced to scroll into view (by the CurrencyManager I guess). Also, there is apparently no way to have a databound ListBox without enabling selection
Because I'm adding new items to the list at a rate of about 3 per second, the ListBox selection appears to jump around a lot. Not only that, but it's virtually impossible to change the selection with a mouse click (the selection just jumps back to the previous selection). Even worse, I can't scroll the list because any attempt to click in or drag the scroll bar is overriden by whatever is forcing the selected item to scroll into view when a new item is added
None of this happens when I use the ListBox without a DataSource.
Is there some way to disable whatever is forcing the selection to scroll into view when I add a new item? I think if I could do that, it would make everything work OK. If I can't do that, then I would say the DataSouce feature of the ListBox is broken and should be fixed.
As I add new items to my ActiveArrayList, my ListBox is updated with the new row, but the selected row is always forced to scroll into view (by the CurrencyManager I guess). Also, there is apparently no way to have a databound ListBox without enabling selection
Because I'm adding new items to the list at a rate of about 3 per second, the ListBox selection appears to jump around a lot. Not only that, but it's virtually impossible to change the selection with a mouse click (the selection just jumps back to the previous selection). Even worse, I can't scroll the list because any attempt to click in or drag the scroll bar is overriden by whatever is forcing the selected item to scroll into view when a new item is added
None of this happens when I use the ListBox without a DataSource.
Is there some way to disable whatever is forcing the selection to scroll into view when I add a new item? I think if I could do that, it would make everything work OK. If I can't do that, then I would say the DataSouce feature of the ListBox is broken and should be fixed.