Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to indicate top item shown in combobox and grid
Message
 
 
To
31/07/2001 13:14:21
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00537854
Message ID:
00537899
Views:
17
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform