Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine visible row in grid
Message
From
09/03/2002 07:51:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00629882
Message ID:
00630558
Views:
24
This message has been marked as the solution to the initial question of the thread.
Hi Andreas,
You always know the record from recno(). If you mean the recno() of one of visible cells yes you don't.
If you just want to activate one visible row you could call :

thisform.myGrid.ActivateCell(1,1) && Activate first visible cell

Cetin

>Hi Ric,
>
>this does not help much, because in my case I don't know
>the record. I know that it is no problem if the user clicks in the grid
>I need just keeping the record no. In my case I want to know the
>visible record without clicking into the grid.
>
>Andreas
>
>>Hi Andreas,
>>
>>Check out Thread #616629 Message #616629 and look at the entire thread. Vlad really helped on this one.
>>
>>HTH
>>
>>RIc
>>>Hi,
>>>
>>>is there a way to determine the visible row of a grid.
>>>Relative row works only if the active row is within the visible part.
>>>
>>>After the user does some scrolling I want to know which row
>>>is shown. It would also be of help if it is possible to make one
>>>of the visible rows the active one (just like the user clicking
>>>in the grid after scrolling).
>>>
>>>Thanks in advance
>>>
>>>Andreas
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform