When I add rows in a vsflexgrid control, and the added row are not visible, and I wish to scroll down the rows via code to show the row hided.
Some has worked with VSFlexgrid? any idea?
thankss
____________________________
Aleks
16-11-2003 at 01:58 AM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: How to scroll down a VSFlexgrid?
RowIsVisible - Returns whether a given row is currently within view.
TopRow - Returns or sets the zero-based index of the topmost non-fixed row displayed in the control.
If Not VSFlexGrid1.RowIsVisible(VSFlexGrid1.Row) Then
VSFlexGrid1.TopRow = VSFlexGrid1.Row
End If
RowIsVisible returns True if current row is visible, otherwise returns False.
TopRow will set currently selected row to be first visible row in FlexGrid. If there are not enough rows to display after the selected row, it will behave like you have scrolled to the end of FlexGrid.
There is also ShowCell method that ensures that selected cell is visible (documentation for this method doesnt exists, at least not in version I am using, but it isn't hard to manage it).
ShowCell (Row As Long, Col As Long)
Hope this helps.
____________________________
If you find the answer helpful, please mark this topic as solved.
16-11-2003 at 02:26 AM
|
mArC Level: Guest
Re: How to scroll down a VSFlexgrid?
Hi folks!
Plz forgive bad english!
I have some trouble withe MSHFLEX under VB 6. The implemented scrollbars (vertikal) only send the scrollevent after releasing it (not sidearrows).
I want to realise a JIT-scrolling. Has anyone a solution, without using the API?
04-12-2003 at 09:41 AM
|
Goran Level: Moderator Registered: 16-05-2002 Posts: 1681
Re: How to scroll down a VSFlexgrid?
MSFlexGrid1.ScrollTrack = True
____________________________
If you find the answer helpful, please mark this topic as solved.