View previous topic :: View next topic |
Author |
Message |
keesp Guest
|
Posted: Thu Jun 30, 2005 12:51 pm Post subject: determining rows when scrolling |
|
|
Hi,
I have overridden the paint method to show relationships between rows through lines. I currently use firstRowIndex as base for these repaint activities, as I assumed it would be the first row that is visible for the user.
However, I have seen that when I scroll the rows, the firstindex is not updated. The table disappears behind the control, as it were.
My question is, how do I know what the index is of the rows that the user actually sees. Do I need to maintain an offset on the first index that is updated every time I scroll up or down the tree, or is there another approach?
Thanks
Kees |
|
Back to top |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Jul 01, 2005 3:07 am Post subject: |
|
|
FirstRowIndex is actually the index of the first row that can be displayed in the tree - this is always either 0 or 1 depending on whether ShowRootRow is true. What you want is TopRowIndex - which gives the index of the first row currently displayed.
What relationships are you displaying using lines that aren't displayed through the normal tree lines? _________________ Infralution Support |
|
Back to top |
|
|
Guest
|
Posted: Mon Jul 04, 2005 6:18 am Post subject: |
|
|
The leafs of the tree can sometimes be mutually connected, and I want to show these connections
Kees |
|
Back to top |
|
|
|