Home
Search
 
What's New
Index
Books
Links
Q & A
Newsletter
Banners
 
Feedback
Tip Jar
 
 
 
 
 
 
 
 
Old Pages
 
Old Index
Site Map
What's New
 
Books
How To
Tips & Tricks
Tutorials
Stories
Performance
Essays
Links
Q & A
New in VB6
Free Stuff
Pictures
 
 
 
TitleColor FlexGrid entries greater than a certain value
KeywordsFlexGrid, cell, color
CategoriesControls
 
Use the control's Row, Col, and Text properties to examine the values. Use the CellForeColor property to change the colors when appropriate.
 
Private Sub Data1_Reposition()
Dim i As Integer

    For i = 1 To MSFlexGrid1.Rows - 1
        MSFlexGrid1.Col = 2
        MSFlexGrid1.Row = i
        If CCur(MSFlexGrid1.Text) > 100 Then
            MSFlexGrid1.CellForeColor = vbRed
        End If
    Next i
    MSFlexGrid1.Col = 0
    MSFlexGrid1.Row = 0
End Sub
 
 
Copyright © 1997-2003 Rocky Mountain Computer Consulting, Inc.   All rights reserved.
  Updated