Connection Information

To perform the requested action, WordPress needs to access your web server. Please enter your FTP credentials to proceed. If you do not remember your credentials, you should contact your web host.

Connection Type

How to get the X and Y coordinates of a Grid DataWindow row? – PB Docs 2022 – PowerBuilder Library

How to get the X and Y coordinates of a Grid DataWindow row? – PB Docs 2022

How to get the X and Y coordinates of a Grid DataWindow
row?

Symptom

How do I get the X and Y coordinates of a clicked row in a grid
DataWindow?

Environment

PowerBuilder

Solution

The code sample below moves an existing static text box to the
location where a user has clicked in the grid DataWindow. It can be
altered to use these X, Y grid DataWindow coordinates for other
uses.

The code sample assumes a PB application with an existing grid
DataWindow named dw_1 and a static text box named st_1.

1. Declare the following external function.

2. Place the following script in the clicked event of the grid
DataWindow.


Document get from Powerbuilder help
Thank you for watching.
Was this article helpful?
Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x