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

msflexgrid with alternate rowcolor

Status
Not open for further replies.

zoomby

Programmer
Joined
Aug 5, 2002
Messages
60
Location
DE
hi!

what's the best way to make a msflexgrid table with alternate row colors? The source is a resultset.

bye
Chris
 
Dim I as integer
Dim iCnt As Integer
With MSFlexGrid1
For I = 0 To .Rows - 1
.Row = I
.col = 0
.ColSel = .Cols - 1

iCnt = iCnt + 1
If iCnt Mod 2 > 0 Then
.CellBackColor = &HC0C0C0
Else
.CellBackColor = vbWHITE
End If

Next I
End With [/b][/i][/u]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top