GridView.Data (gb.qt4)
Use this property to store the contents of a cell during the
Data event handler.
Example
' Gambas class file
''Run this in a 'Graphical application'
sData As String[] = ["707860,UA,Hurzuf", "519188,RU,Novinki", "1283378,NP,Gorkhā", "1270260,IN,State of Haryāna", "708546,UA,Holubynka", "1283710,NP,Bāgmatī Zone", "529334,RU,Mar’ina Roshcha"]
Gridview1 As Gridview
Public Sub Form_Open()
With Me
.W = 300
.H = 200
.Arrangement = Arrange.Vertical
.Padding = 5
End With
With GridView1 = New GridView(Me) As "Gridview1"
.Expand = True
.Columns.Count = 3
.Rows.Count = sData.Count
End With
End
Public Sub GridView1_Data(Row As Integer, Column As Integer)
Dim sSub As String[]
sSub = Split(sData[Row])
'GridView1[Row, Column].Text = sSub[Column]
GridView1.Data.Text = sSub[Column]
End