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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

MS Flex Grid in Two Colors Row

Status
Not open for further replies.

Oracle8ii

Technical User
Jun 15, 2005
7
PK
Dear

Is it Possible that FlexGrid Rows in Two Colours. I mean that Even Rows are in yellow and odd rows are in green colors.


 
Sure can, you would need to use code similar to this,
Code:
Dim i as Integer

With MSFlexGrid1
   For i = 0 to .rows-1
      .Row = i
      .Col = 0
      .ColSel = .Cols - 1
      .FillStyle = flexFillRepeat
      if i mod 2 = 0 And .row > 0 Then
          .CellBackColor = vbYellow
      Else
          .CellBackColor = vbGreen
      End If
   Next i
End with


zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top