https://foro.gambas-es.org/viewtopic.php?f=1&t=5002&p=28987#p28987
-----------------------------------
vuott
Viernes, 27 Noviembre 2015, 12:11

Re: Evento Data, Colorear Celdas Y Ver Texto
-----------------------------------
En efecto, el texto en la celda es visible.

Gracias, shordi: ahora hemos comprendido [img]http://forum.ubuntu-it.org/images/smilies/zomp.gif[/img] como utilizar al evento [i]_Data[/i] de una [i]GridView[/i].

[code linenumbers=false syntax=gambas]Private s As New String[3, 3]


Public Sub Form_Open()

   With GridView1
     .Rows.Count = 3
     .Columns.Count = 3
   End With
  
  s[1, 1] = "shordi"
  s[1, 2] = "super"

End


Public Sub GridView1_Data(Row As Integer, Column As Integer)

   If (Row = 1) And (Column = 1) Then GridView1.Data.Background = Color.SetAlpha(&FF0000, 240)
   If (Row = 1) And (Column = 2) Then GridView1.Data.Background = Color.SetAlpha(&FFFF00, 240)

   GridView1.Data.Text = s[Row, Column]

End[/code]


