Move to first record in the data windows control

If you are a Power Builder developer and have any questions about using our products from Power Builder here is the place to post them.
Post Reply
patricksky
Posts: 1
Joined: Fri Feb 07 2003

Move to first record in the data windows control

Post by patricksky »

How can i set the cursor of the data windows back to the first record (like the method recordset.movefirst in Visual Basic)?
that's i want the data windows display the first reocrd after clicked a button.
thx~
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Unfortunately, I don't have an answer to your question :( , I hope some PowerBuilder programmers may be able to help.

However, I will check and if I find something I will post it here

Thanks
qui
Posts: 2
Joined: Thu Mar 20 2003
Contact:

Re: Move to first record in the data windows control

Post by qui »

Hello patricksky,

I dont know whether you fix that problem or not? cuz I had just jointed this room :)

To do that, simply you can use to function ScrollToRow(1) or SetRow(1)

Please refer the Help in PB :D

Hope it's helpful
dclayton
Posts: 8
Joined: Mon Apr 14 2003
Location: Houston
Contact:

Post by dclayton »

You typically want to call something like the following:

dw_1.insertrow() //inserts the row
dw_1.scrolltorow() //puts the user on the desired row
dw_1.setcolumn() //put the user in the desired column
dw_1.setfocus() //to set Windows' focus to the dw control.


Don Clayton
Intertech Consulting, Inc.
Houston, TX.
Post Reply