CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2001
    Posts
    10

    Colorific MSHFLEXGRID

    Could I populate a grid changing the color of rows depending on contents?


  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: Colorific MSHFLEXGRID

    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


    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured