General information
Category:
Forms & Form designer
Thanks for the response, but the selected row will generally not be a row in the visible portion of the grid and to use the relativerow property, the grid must have focus. I was hoping that the relativerow would display a nagative value if scrolled above the visible region. Unfortunately, as soon as the grid gets focus, the grid always ensures the selected row is in the displayed list. What I am trying to do, is circle certain cells in the grid as they scroll, but since I can't query the cell vaules directly, I have to rely on the bound cursor.
>>How can I determine the record that is in the top row of a grid? In other words the selected record is 10, but the grid has now scrolled down about 500 rows, now which record is now the 1st row? Isn't there a Y component compliment to the leftcolumn property?
>
>If you're in grid (that's it has focus) you can use RelativeRow to determine your position in visible part. If grid doesn't have focus then you might achieve the same goal using GridHitTest.
>Say current relativeRow = 5, then you're on 5th row in grid.
>Cetin
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only