default background of grid cell
Using flexgrid

I want to check the flex grid cell default color...

If background color is cyan then the below code is working, if background color is white then the below code is not working.

Code (Method1)

    Private Sub flex1_LeaveCell()
        With flex1
            If .CellBackColor = vbCyan Then
                .TextMatrix(.row, 34) = Val(.TextMatrix(.row, .Col)) 
            ElseIf .CellBackColor = vbWhite Then
                .TextMatrix(.row, 33) = Val(.TextMatrix(.row, .Col)) 
            End If
        End With
    End Sub

Code (Method2)

    Private Sub flex1_LeaveCell()
        With flex1
            If .CellBackColor = vbCyan Then
                .TextMatrix(.row, 34) = Val(.TextMatrix(.row, .Col)) 
            ElseIf 
                .TextMatrix(.row, 33) = Val(.TextMatrix(.row, .Col)) 
            End If
        End With
    End Sub

Above code is working only for color cyan, the above code is not recongnizing white.

So what is the default bacground cell colour of flex grid.

Need Help
default background of grid cell
===

Using flexgrid

I want to check the flex grid cell default color...

If background color is cyan then the below code is working, if background color is white then the below code is not working.

Code (Method1)

    Private Sub flex1_LeaveCell()
        With flex1
            If .CellBackColor = vbCyan Then
                .TextMatrix(.row, 34) = Val(.TextMatrix(.row, .Col)) 
            ElseIf .CellBackColor = vbWhite Then
                .TextMatrix(.row, 33) = Val(.TextMatrix(.row, .Col)) 
            End If
        End With
    End Sub

Code (Method2)

    Private Sub flex1_LeaveCell()
        With flex1
            If .CellBackColor = vbCyan Then
                .TextMatrix(.row, 34) = Val(.TextMatrix(.row, .Col)) 
            ElseIf 
                .TextMatrix(.row, 33) = Val(.TextMatrix(.row, .Col)) 
            End If
        End With
    End Sub

Above code is working only for color cyan, the above code is not recongnizing white.

So what is the default bacground cell colour of flex grid.

Need Help