Hi,

Is there a way to check if the Record Pointer in a Grid
is not anymore visible when a user scrolls the Grid?
What I want to do is when the user scrolls and the record
pointer is not visible, I will set the record pointer to
the record on the top row that is visible.


Thanks.

Re: Scrolling in a Grid by Anders

Anders
Fri Mar 30 20:53:53 CDT 2007

IF This.ActiveRow=0
This.ActivateCell(1,1)
ENDIF

-Anders

"HerbertDB" <herbertdb@nospam.com> wrote in message
news:%23RkK3PzcHHA.4836@TK2MSFTNGP03.phx.gbl...
> Hi,
>
> Is there a way to check if the Record Pointer in a Grid
> is not anymore visible when a user scrolls the Grid?
> What I want to do is when the user scrolls and the record
> pointer is not visible, I will set the record pointer to
> the record on the top row that is visible.
>
>
> Thanks.
>



Re: Scrolling in a Grid by Man-wai

Man-wai
Sat Mar 31 00:56:53 CDT 2007

Anders Altberg wrote:
> IF This.ActiveRow=0
> This.ActivateCell(1,1)
> ENDIF

thanks.

--
.~. Might, Courage, Vision, SINCERITY. http://www.linux-sxs.org
/ v \ Simplicity is Beauty! May the Force and Farce be with you!
/( _ )\ (Ubuntu 6.10) Linux 2.6.20.4
^ ^ 13:56:01 up 7 days 1:08 0 users load average: 1.05 1.01 1.00
news://news.3home.net news://news.hkpcug.org news://news.newsgroup.com.hk

Re: Scrolling in a Grid by HerbertDB

HerbertDB
Sun Apr 01 20:35:18 CDT 2007

Can I check what is the top row that is Visible in the Grid?

Im looking for a command like grid.LeftColumn only on a Row.


"Anders Altberg" <anders.altberg> wrote in message
news:e$Qz1dzcHHA.4872@TK2MSFTNGP03.phx.gbl...
> IF This.ActiveRow=0
> This.ActivateCell(1,1)
> ENDIF
>
> -Anders
>
> "HerbertDB" <herbertdb@nospam.com> wrote in message
> news:%23RkK3PzcHHA.4836@TK2MSFTNGP03.phx.gbl...
>> Hi,
>>
>> Is there a way to check if the Record Pointer in a Grid
>> is not anymore visible when a user scrolls the Grid?
>> What I want to do is when the user scrolls and the record
>> pointer is not visible, I will set the record pointer to
>> the record on the top row that is visible.
>>
>>
>> Thanks.
>>
>
>



Re: Scrolling in a Grid by Dan

Dan
Sun Apr 01 21:25:07 CDT 2007

Do the ActivateCell() thing Anders suggestion and then check
Recno(.Recordsource).

Dan

"HerbertDB" <herbertdb@nospam.com> wrote in message
news:%23qNMpVMdHHA.984@TK2MSFTNGP04.phx.gbl...
> Can I check what is the top row that is Visible in the Grid?
>
> Im looking for a command like grid.LeftColumn only on a Row.
>
>
> "Anders Altberg" <anders.altberg> wrote in message
> news:e$Qz1dzcHHA.4872@TK2MSFTNGP03.phx.gbl...
>> IF This.ActiveRow=0
>> This.ActivateCell(1,1)
>> ENDIF
>>
>> -Anders
>>
>> "HerbertDB" <herbertdb@nospam.com> wrote in message
>> news:%23RkK3PzcHHA.4836@TK2MSFTNGP03.phx.gbl...
>>> Hi,
>>>
>>> Is there a way to check if the Record Pointer in a Grid
>>> is not anymore visible when a user scrolls the Grid?
>>> What I want to do is when the user scrolls and the record
>>> pointer is not visible, I will set the record pointer to
>>> the record on the top row that is visible.
>>>
>>>
>>> Thanks.
>>>
>>
>>
>
>



Re: Scrolling in a Grid by HerbertDB

HerbertDB
Mon Apr 02 01:13:40 CDT 2007

Thanks to all,
Im trying to make the the Grid record pointer always visible. When
the user scroll the record pointer out of the grid display, it should move
the record pointer to a visible row. Tried the ActivateCell and it works
fine when I use the scroll button in the mouse. But when I click
on the scroll bar of the grid, the record pointer does move, but
it quickly returns to the previously selected record and makes it visible
again.
Any idea? thanks again.


"Dan Freeman" <spam@microsoft.com> wrote in message
news:enAKk4MdHHA.2268@TK2MSFTNGP02.phx.gbl...
> Do the ActivateCell() thing Anders suggestion and then check
> Recno(.Recordsource).
>
> Dan
>
> "HerbertDB" <herbertdb@nospam.com> wrote in message
> news:%23qNMpVMdHHA.984@TK2MSFTNGP04.phx.gbl...
>> Can I check what is the top row that is Visible in the Grid?
>>
>> Im looking for a command like grid.LeftColumn only on a Row.
>>
>>
>> "Anders Altberg" <anders.altberg> wrote in message
>> news:e$Qz1dzcHHA.4872@TK2MSFTNGP03.phx.gbl...
>>> IF This.ActiveRow=0
>>> This.ActivateCell(1,1)
>>> ENDIF
>>>
>>> -Anders
>>>
>>> "HerbertDB" <herbertdb@nospam.com> wrote in message
>>> news:%23RkK3PzcHHA.4836@TK2MSFTNGP03.phx.gbl...
>>>> Hi,
>>>>
>>>> Is there a way to check if the Record Pointer in a Grid
>>>> is not anymore visible when a user scrolls the Grid?
>>>> What I want to do is when the user scrolls and the record
>>>> pointer is not visible, I will set the record pointer to
>>>> the record on the top row that is visible.
>>>>
>>>>
>>>> Thanks.
>>>>
>>>
>>>
>>
>>
>
>



Re: Scrolling in a Grid by Anders

Anders
Mon Apr 02 03:45:58 CDT 2007

Try using the Scrolled event.

-Anders


"HerbertDB" <herbertdb@nospam.com> wrote in message
news:OH8EPxOdHHA.4868@TK2MSFTNGP06.phx.gbl...
> Thanks to all,
> Im trying to make the the Grid record pointer always visible. When
> the user scroll the record pointer out of the grid display, it should move
> the record pointer to a visible row. Tried the ActivateCell and it works
> fine when I use the scroll button in the mouse. But when I click
> on the scroll bar of the grid, the record pointer does move, but
> it quickly returns to the previously selected record and makes it visible
> again.
> Any idea? thanks again.
>
>
> "Dan Freeman" <spam@microsoft.com> wrote in message
> news:enAKk4MdHHA.2268@TK2MSFTNGP02.phx.gbl...
>> Do the ActivateCell() thing Anders suggestion and then check
>> Recno(.Recordsource).
>>
>> Dan
>>
>> "HerbertDB" <herbertdb@nospam.com> wrote in message
>> news:%23qNMpVMdHHA.984@TK2MSFTNGP04.phx.gbl...
>>> Can I check what is the top row that is Visible in the Grid?
>>>
>>> Im looking for a command like grid.LeftColumn only on a Row.
>>>
>>>
>>> "Anders Altberg" <anders.altberg> wrote in message
>>> news:e$Qz1dzcHHA.4872@TK2MSFTNGP03.phx.gbl...
>>>> IF This.ActiveRow=0
>>>> This.ActivateCell(1,1)
>>>> ENDIF
>>>>
>>>> -Anders
>>>>
>>>> "HerbertDB" <herbertdb@nospam.com> wrote in message
>>>> news:%23RkK3PzcHHA.4836@TK2MSFTNGP03.phx.gbl...
>>>>> Hi,
>>>>>
>>>>> Is there a way to check if the Record Pointer in a Grid
>>>>> is not anymore visible when a user scrolls the Grid?
>>>>> What I want to do is when the user scrolls and the record
>>>>> pointer is not visible, I will set the record pointer to
>>>>> the record on the top row that is visible.
>>>>>
>>>>>
>>>>> Thanks.
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>