DATAGRID CORES
                    Pessoal, como faço para colorir as linhas do datagrid por cores.. por exemplo de ordem: vermelho, depois azul, depois branco, ai repete... etc..
vlaeeu..
            vlaeeu..
                    Boa tarde, 
Bom, não sei se é a melhor forma, mas tente assim:
            Bom, não sei se é a melhor forma, mas tente assim:
With DataGridView1
            Dim Indice As Integer = 1
            For x = 0 To DataGridView1.Rows.Count - 1
                If Indice = 1 Then
                    .Rows(x).DefaultCellStyle.BackColor = Color.Red
                Else
                    If Indice = 2 Then
                        .Rows(x).DefaultCellStyle.BackColor = Color.Blue
                    Else
                        If Indice = 3 Then
                            .Rows(x).DefaultCellStyle.BackColor = Color.White
                        End If
                    End If
                End If
                Indice += 1
                If Indice = 4 Then
                    Indice = 1
                End If
            Next
        End With
                    funcionou certinho...
valeeu! ;)
            valeeu! ;)
                        Tópico encerrado , respostas não são mais permitidas
                    
                
