Dokumentaro de Gambaso
Compilation & Installation
Components
gb
gb.crypt
gb.qt4
Control
Key
Documents
Indekso de Lingvo
Language Overviews
LeguMin
Lexicon
Registro

GridView.Data (gb.qt4)

Property Read Data As _GridView_Data

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
    .= 300
    .= 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