' // create all the channels for this row
For x = 2 To tv.ColumnsCount-1
tv.SetColumnWidth(x,50)
' // for each cell we create a cell index and checkbox for each channel and store the key
Dim ci As CellIndex
Dim p As Pane
p.Initialize("")
ci.key = rs1.GetString("device_id")
ci.Column = x
ci.Row = rowIndex
p.AddNode(CreateItemCB(ci),0,0,60,60)
p.SetLayoutAnimated(0,0,0,60,60)
row(x) = p
Next