borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (VB CallBack)Next Topic (Clickable Line Control) New Topic New Poll Post Reply
AndreaVB Forum : ActiveX : How to scroll down a VSFlexgrid?
Poster Message
Aleks
Level: Scholar


Registered: 10-11-2003
Posts: 32

icon How to scroll down a VSFlexgrid?

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
View Profile Send Email to User Show All Posts ICQ | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon 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
View Profile Send Email to User Show All Posts | Quote Reply
mArC
Level: Guest

icon 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
| Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: How to scroll down a VSFlexgrid?

MSFlexGrid1.ScrollTrack = True


____________________________
If you find the answer helpful, please mark this topic as solved.

06-12-2003 at 01:54 AM
View Profile Send Email to User Show All Posts | Quote Reply
mArC
Level: Guest

icon Re: How to scroll down a VSFlexgrid?

thx, tahts easy!  

06-12-2003 at 11:39 PM
| Quote Reply
AndreaVB Forum : ActiveX : How to scroll down a VSFlexgrid?
Previous Topic (VB CallBack)Next Topic (Clickable Line Control) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder