Positioning Items in a Display

Good day, all,

I have a form. The form has a tabless tabpanel that has a subform on it. That subform is set to “list view (locked)”.

Let’s say that the foundset for the subform has 100 entries in it. If I set the selectedindex for the foundset to something in the middle of the list, let’s say the 50th item, should that item appear somewhere in the visible part of the display for the subform?

I’m trying to programatically “scroll” the list so that a user can select an item from a combobox, and have the list go there, rather than having them have to manually scroll down the list. So, I sort the list into the proper order, then use a loop to run through the foundset, comparing the value in the selected record to the value in the combobox, and then when I find it, set the index of that record to be the selectedindex for the foundset. There are some other options on the form, and altogether, I’m finding the behavior to be kind of erratic. So, I suspect that something I’m doing is not being used for the intended purpose.

As always, any guidance would be appreciated.

Have a good day.

Ron