Subject Re: [IBO] DataSet/Grid Positioning
Author Jason Wharton
This sounds to me like an application quirk that you will solve using the
Delphi debugger. Set some breakpoints in the code where you suspect it is
scrolling and shouldn't be. Then examine the callstack to see what all was
involved when invoking the code to unexpectedly scroll the dataset.

HTH,
Jason Wharton
CPS - Mesa AZ
http://www.ibobjects.com


----- Original Message -----
From: "Eddie Bush" <eddie@...>
To: <IBObjects@egroups.com>
Sent: Tuesday, January 23, 2001 3:12 PM
Subject: [IBO] DataSet/Grid Positioning


> Is there something in IB_Grid that causes it to go to the first row when
it is shown?
>
> I have a form that, upon being shown, calls another form that guides the
user through the creation of a master record (a wizard of sorts). After the
master record is created, they are given the opportunity to add detail
records.
>
> The first time the user opens the form and is given the wizard, something
seems to reposition the dataset to the first record. I even tried locating
the record after it was inserted (before form is shown for the first time).
I still wind up with the master dataset at the first record.
>
> If, however, I reject (rollback) the transaction and invoke the wizard
from the File -> New command, which executes the same action that the OnShow
event of the form does, I get the record I want. Is there some way I can
get around having the dataset set itself to the first record the first time?
>
> Any suggestions/comments are most appreciated!
>
> Thanks in Advance!
>
> Eddie
>
>
>
> [Non-text portions of this message have been removed]
>
>
>
>