>Hello,
>
>I don't understand this properties exactly. Can anyone explain this with some example. I mean in which case it is useful ?
Hi John.
OK. Suppose you have a grid with 14 visible rows. As the user scrolls down in the grid and the first row scrolls up so it is no longer visible, the ActiveColumn of the last visible row in the grid may be, for example, 22. But he RelativeRow for the last visible row remains 14. As the records scroll up in the grid, the first row in the grid is always RelativeRow #1. But it may be ActiveRow #22. RelativeColumn works the same way.
As for how to use this: one example might be a little combo class I created especially for use inside grids. When the combo's list is dropped down, use of the cursor keys traverses the list. But when the list is not droppped down, use of the cursor keys traverses the grid. In order to make it work, I had to take action when the grid's ActiveRow was greater than it's RelativeRow and invoke the grid's DoScroll method.
Hope this helps.
Marcia
Previous
Next
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