If your grid displays 10 rows of data (it's what the user can see) and you have 100 rows of data in your grid, your user can see just 10 rows at the time, no matter if you scroll or not.
Unless you have just 5 rows of data in your grid (you still CAN display 10 rows) - your user can see just 5 rows.
Unless I am missing something..... (which is possibile )
I have a msflexgrid which I fill from an ADO recordset, this recordset can contain from 5 results to more than 1000, I realize that I can resize the msflexgrid control to show up to 10 rows, however I have another controls to navigate through the msflexgrid, one row at a time or "by page" (10 rows at a time). I need to know at all times which row is the one "highlighted" cause I think is a way to link the navigation controls with the arrow keys, at this moment If I start to navigate with the control from an initial position and pass any number of rows or pages and then press the arrow keys, it goes back to the initail point.
I haven`t been able to figure out how to solve this problem.
If you have any ideas these will be more tha welcome.
I don't know if that will help, but the FlexGrid has a [tt] .TopRow[/tt] property, which sets which row is displayed at the top of your flexgrid control.
I need to know at all times which row is the one "highlighted" so that I can scroll with the arrow keys (keyboard) or with my navigation controls and be consistent with the "navigation".
Private Sub MSFlexGrid1_EnterCell()
If MenuIsActive = True Then ' you may not need this boolean
With MSFlexGrid1
ActiveRow = .Row
' Maybe do something
End With
End If
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.