### Add Data to a TableView

This is an example to build a TableView (ID: tableviewStandard) with two columns and
add 10 rows with data in the row cells.
' Init the tableview with some data
`Sub tableviewStandard_Init
tableviewStandard.SetColumns(Array As String("Column 1", "Column 2"))
tableviewStandard.SetColumnWidth(0, 100)
tableviewStandard.SetColumnWidth(1, 100)
For i = 1 To 10
tableviewStandard.Items.Add(Array As Object(i, i * i))
Next
'Here to set the first row
'tableviewStandard.SelectedRow = 0
If tableviewStandard.SelectedRow < 0 Then Return
' Example to show how to get the tableview data
Dim Row() As Object = tableviewStandard.SelectedRowValues
Log("Selected Row: " & tableviewStandard.SelectedRow)
Log("Number of Cells: " & Row.Length)
For i = 0 To Row.Length - 1
Log("Cell " & i & " = " & Row(i))
Next
End Sub`

Changed: 2018-03-16 18:37, Category: TableView, File: T6C259M1872.htm, ID: 1872