Моя прцедура:
- Код: Выделить всё
Public Sub MakeGrig2Colors(ByRef p_grdRows As MSFlexGrid, ByVal Color1 As Long, ByVal Color2 As Long)
Dim i As Long, JC As Long, j As Long, K As Long, C As Long
p_grdRows.ReDraw = False
K = p_grdRows.Rows - 1
JC = p_grdRows.Cols - 1
For i = 1 To K
If C = Color1 Then C = Color2 Else C = Color1
p_grdRows.row = i
For j = 0 To JC
p_grdRows.Col = j
p_grdRows.CellBackColor = C
Next
Next
p_grdRows.ReDraw = True
End Sub