I have a listbox with a couple thousand rows and I want to do additional processing on only the visible rows. Using ScrollPosition, Height and RowHeight, I can determine which rows are visible.
Is there a simple way to know when the visible rows have changed?
This can result from numerous actions: window resizing, scrolling with mouse, keyboard navigation, sorting by column, etc.
One idea is to utilize a timer to check if ScrollPosition has changed but that doesn’t catch everything; for example, performing a column sort doesn’t change the scroll position. I guess a combination of a timer and processing the various events (column sorting, window resizing, etc.) might work but I was hoping for something simpler.
Thanks.
5 posts - 2 participants