Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grids
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Re: Grids
Miscellaneous
Thread ID:
00098771
Message ID:
00098799
Views:
32
>>I was not very clear in my explanation....
>>
>>recno() will indicate the current record, but it will not tell me in which row in the grid that record is displayed.
>>
>>For example, if i use:
>>
>> goto 100
>> thisgrid.refresh
>>
>>It will indeed display record #100, but not necessarily on the first row of the grid. Sometimes it display on row 5 (of 10), sometimes on a different row. I want to determine which row, and then move it to the top of the grid so it displays on row 1. But I have not been able to tell which records display on which rows.
>>
>>Thanks
>>Mark
>
>When you move along the grid (click to next row etc.) you actually move pointer (recno()) along grid.recordsource i.e. recno() will always return location of currently active row/record.

Recno() does not take into consideration records that are marked for deletion and are not showing up due to the setting of Set Deleted. For example, a table with 10 records. Records 3 and 7 are marked for deletion. When shown in a grid with deleted records hidden, you see 8 rows. If you scroll to row 3, you will be on row 3 but recno() will equal 4 because record 3 is not showing as it is deleted.

HTH
_________________________________
There are 2 types of people in the world:
    Those who need closure
Previous
Reply
Map
View

Click here to load this message in the networking platform