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
Posts: 1
Joined: Fri Feb 07 2003

Move to first record in the data windows control

Post by patricksky » Fri Feb 07 2003

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.

Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002

Post by Joan » Fri Feb 07 2003


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


Posts: 2
Joined: Thu Mar 20 2003

Re: Move to first record in the data windows control

Post by qui » Thu Mar 20 2003

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

Posts: 8
Joined: Mon Apr 14 2003
Location: Houston

Post by dclayton » Wed Apr 16 2003

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