Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you track the current row in a scrolling datawindow?

Status
Not open for further replies.

abhijit74

Programmer
Oct 1, 2003
16
US
hi folks,
i am facing a problem in tryin to keep track of the current row of a datawindow.

i use the dw.GetRow() function to get hold of the current row. I have written this function in the scrollvertical event of the datawindow control. I notice that scrolling in the dw has no effect on this function, which always returns me a value of 1.

Could someone tell me how do I track this row? its giving me nightmares.

Cheers!
Abhijit
 
Simpling using the vertical scrollbar does not actually change the currently focussed row unless you click on a different row or use the ScrollToRow()/SetRow() functions. You may query the:

dw.Describe( "DataWindow.FirstRowOnPage" )

to get the row number of the first row displayed on the dw, instead. I'm sure you are looking for this value.

---
PowerObject!
-----------------------------------------
PowerBuilder / PFC Developers' Group
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top