Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to highlight the last row on the flex grid 1

Status
Not open for further replies.

Avacha

Technical User
Apr 1, 2002
69
US

If anyone knows how to highlight the last row on the flex grid. If, please, help me.
I would greatly appreciate your help.


 
Try this,

Code:
Private Sub Command1_Click()
   MSFlexGrid1.HighLight = flexHighlightAlways
   MSFlexGrid1.SelectionMode = flexSelectionByRow
   MSFlexGrid1.FocusRect = flexFocusNone
   MSFlexGrid1.Row = MSFlexGrid1.Rows - 1
   MSFlexGrid1.RowSel = MSFlexGrid1.Rows - 1
   MSFlexGrid1.Col = 0
   MSFlexGrid1.ColSel = MSFlexGrid1.Cols - 1
End Sub

If the last row is not displayed on the grid (you have to scroll to it) try adjusting the
Code:
.toprow
property.


Take Care,

zemp

"If the grass looks greener... it's probably because there is more manure."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top