>In a combobox, I want the dropdown list to include the first item of the rowsource, if at all possible, while still showing the selected item.
>
>More generally, how can I indicate which list element will be at the top of the dropdown list?
>
What's the RowSource for this combo? If it's a select statement ordered somehow, you may try to select into cursor instead and the top record would be the first element in the dropdown list.
>Similar question for a grid after applying a filter to the record source.
>
>TIA,
>
>Alex
You can find out the recno() after applying your filter, but it's not the same, as the first record shown in a grid. We have a method of our grid class called LocateRecordonTop, which places the current record at the top of the grid.
Unfortunately, I don't know, how to find out, which record is shown at the top of the grid, if it's not a current record. I suspect, it should be something tricky...
If it's not broken, fix it until it is.
My Blog