Colorear Grilla
Alguien pude decirme como colorear una fila completa de un Grid alternando sus colores.
Muchas Gracias
Muchas Gracias
Si es un datagrid no podes, te colorea todo, si es un mshflexgrig o un flexgrid con la propiedad .cellbackcolor
for y=1 to Grilla.rows-1
If y Mod 2 = 0 Then
Grilla.Row = Y
For x = 0 To Grilla.Cols - 1
Grilla.Col = x
Grilla.CellBackColor = RGB(240, 240, 240)
Next
Else
Grilla.Row = Y
For x = 0 To Grilla.Cols - 1
Grilla.Col = x
Grilla.CellBackColor = &H80000018
Next
End If
next
Espero que te sirva
If y Mod 2 = 0 Then
Grilla.Row = Y
For x = 0 To Grilla.Cols - 1
Grilla.Col = x
Grilla.CellBackColor = RGB(240, 240, 240)
Next
Else
Grilla.Row = Y
For x = 0 To Grilla.Cols - 1
Grilla.Col = x
Grilla.CellBackColor = &H80000018
Next
End If
next
Espero que te sirva
