MSFlexGrid控件
>怎样来实现MSFlexGrid控件单数行背景为白色,双数的行背景为蓝色?Dim i As Integer
With MSFlexGrid1
.AllowBigSelection = True ’ 设置网格样式
.FillStyle = flexFillRepeat
For i = 0 To .Rows - 1
.Row = i
.Col = .FixedCols
.ColSel = .Cols() - .FixedCols - 1
If i Mod 2 = 0 Then
.CellBackColor = &HC0C0C0 ’ 浅灰
Else
.CellBackColor = vbBlue ’ 兰色
End If
Next i
End With
.Row = i
.Col = .FixedCols
.ColSel = .Cols() - .FixedCols - 1
其中这三语句是什么意思啊 没看懂啊 求注释