Scroll to Row in Grid

Sef

Sef

VIP Member
This Tip was suggested by John Oliver:

Q: "Does anybody know how to scroll a grid to a given row and select the row? I know how to use the GetGridRow system function to find the row number I want, but I cannot find any way of bringing that row to the user's attention. I don't want to hide the other rows; I just want to scroll the row into view if it is not visible, and I want to select it."

A: "Insert a new row at the location you wish to scroll to. Then delete it. The row you wanted is now selected. It is a ghastly hack, but it works transparently."


Sef van den Nieuwelaar
Australia
B732 on NT, XE on NT, B732/A73 on AS400, B733 on NT
 
Back
Top