MSFlexGrid scrollbar follow problem
The user constantly fills the MSFlexGrid and once it fill like 20 rows it starts to go below the line and a scroll bar appears. Is there anyway I can set the scrollbar value? Is there anyway I can get it to follow without adding new entries to the top?
Re: MSFlexGrid scrollbar follow problem
Use the TopRow property to ensure a row is visible. To check if a row is visible, hey use the RowIsVisible method.
Something like
VB Code:
'...code to add new row.
If Not FlexGrid.RowIsVisible(FlexGrid.Rows-1) Then
FlexGrid.TopRow = FlexGrid.Rows - 1
End If
Note: Even if the row is not completely visible RowIsVisible will return True.