For indice_lista = 0 to List1.Size-1
dim row as int = indice_lista / 3
dim cell as int = (indice_list mod 3 )
Dim rowpnl As Panel
if cell = 0 then
rowpnl.Initialize("")
rowpnl.LoadLayout("lytGridRow")
else
rowpnl = clv1.getPanel(row)
end if
Dim bckpnl As Panel = rowpnl.GetView(0)
Dim cellpnl As Panel = bckpnl.getview(cell)
cellpnl.LoadLayout("lytCell")
Dim bckp AsPanel = cellpnl.GetView(0)
Dim image As ImageView = bckp.GetView(0)
image.Bitmap = LoadBitmapSample(File.DirAssets,"pizza.png",bckp.Width, bckp.Height/2)
Dim title AsLabel = bckp.GetView(1)
title.Text = List1.Get(indice_lista)
Dim Stitle As Label = bckp.GetView(2)
Stitle.Text = "mozarella"
Dim Prezzo As Label = bckp.GetView(3)
Prezzo.Text ="8 euro"
if cell <> 0 then
clvGrid.ReplaceAt(row, rowpnl, cellheight, row)
else
clvGrid.Add(rowpnl, cellheight, row)
end if
next