### Add Row to a TableView

To add a new to a tableview use Array of Object and the Items.Add Function.
Example 1 for a two Column TableView
' Define a new row object with the size of the tableview1 columnscount
Dim Row(tableview1.ColumnsCount) As Object
' Add new data per row cell. The number of cells must match the tableview columnscount
' Add as an example for a two column listview
Row(0) = 200
Row(1) = 200 * 200
' Add the new row to the tableview
tableview1.Items.Add(Row)
Example 2 to add a new row to a TableView containing 3 columns
' Add new row to a tableview
' Parameter TableView
' Parameter Row: Array of Strings("1", "2", "3")
`Sub addrowTableView(tv As TableView, Row() As String)
Dim rowOfLabels(Row.Length) As Object
For i = 0 To Row.Length - 1
Dim lbl As Label
lbl.Initialize("lbl")
lbl.Text = Row(i)
rowOfLabels(i) = lbl
Next
tv.Items.Add(rowOfLabels)
End Sub`
' Example usage:
Dim Row() As String = Array As String("1", "2", "3")
addrowTableView(TableView1, Row)

Changed: , Category: TableView, File: T6C259M1873.htm, ID: 1873