19/05/2023: A causa di un errore sono stati cancellati, insieme ad account creati da bot, alcuni account legittimi. Si prega di leggere qui: https://www.gambas-it.org/smf/index.php?topic=9733.0
If group = True Then GridView_Media.Row[i].Background = Color.LightGray Else GridView_Media.Row[i].Background = Color.Background Endif
Public Sub Form_Open() With GridView1 .Columns.Count = 5 .Rows.Count = 50 End WithEndPublic Sub GridView1_Data(Row As Integer, Column As Integer) If Row Mod 2 = 0 Then GridView1.Data.Background = &HBFFFBFEnd
... può essere questo:
Public Sub Form_Open() Dim b As Byte With GridView1 .Columns.Count = 4 .Rows.Count = 8 End With GridView1[0, 1].Text = "aaa" For b = 0 To GridView1.Columns.Max GridView1[b, b].Text = CStr(b) NextEndPublic Sub GridView1_Data(Row As Integer, Column As Integer) GridView1.Data.Background = &FF0000End
Public Sub Form_Open() With GridView1 .Columns.Count = 5 .Rows.Count = 50 End WithEndPublic Sub GridView1_Data(Row As Integer, Column As Integer) GridView1.Data.Text = "aaa_" & Row & Column If Row Mod 2 = 0 Then GridView1.Data.Background = &HBFFFBFEnd
Ora devo proprio dedicarmi al mio amore