SetVerticalScroll , how to use?
Hi, how actually the usage of SetVerticalScroll in scroll manager?
actually i'm in doing of cell/row searching by taking the idea from the demo by just using FindNext method. Yes i did found the cell but the found cell/row appear to be at the bottom of the page or on top of the page. My intention is to set the found cell to be always display at the top visible row of the page. So i thought SetVerticalScroll could help me to do so, but i'm not sure how to use it. i have the found cell child index, cell.Row.ChildIndex and page size, from ScrollManager.VerticalPageSize so
1st param = (cell.Row.ChildIndex - ScrollManager.VerticalPageSize)
2nd param = what does max mean?
3rd param = ScrollManager.VerticalPageSize
4th = true
am i doing the right thing with SetVerticalScroll ??
-
Hi,
Each row has properties indicating the visible position in the grid, position in the parent row etc... To ensure visible the row on the top of the page just call:
grid.ScrollManager.VerticalPosition = cell.Row.VisibleIndex;
Best regards,
The Dapfor Team0 -
It work, thanks a lot~!
0
Please sign in to leave a comment.
Comments
2 comments