Rob,
Thank you for your answer.
I tried your suggestion and I am getting an error in my onRowRender:
Attempt to index field ‘flag’ (a nil value)
for some reason it is not finding the params.flag.
If I comment the insert Row title from scene:Show and from onRowRender , it works fine.
function scene:show( event ) local sceneGroup = self.view params = event.params print("scene show " .. #groupA) myList:insertRow { rowHeight = 60, isCategory = true, rowColor = { 0.8, 0.8, 0.8 }, lineColor = { 0.90, 0.90, 0.90 }, params = { title = "Group A", } } for i = 1, #groupA do myList:insertRow{ rowHeight = 60, isCategory = false, rowColor = { 1, 1, 1 }, lineColor = { 0.90, 0.90, 0.90 }, params = { flag = groupA[i].flag, country = groupA[i].country } } end end local function onRowRender( event ) --Set up the localized variables to be passed via the event table --print ("onRowRender") local row = event.row local id = row.index local params = event.row.params row.bg = display.newRect( 0, 0, display.contentWidth, 60 ) row.bg.anchorX = 0 row.bg.anchorY = 0 row.bg:setFillColor( 1, 1, 1 ) row:insert( row.bg ) if id \> #groupA then return true end if ( event.row.params ) then row.titleText = display.newText( params.title, 12, 0, native.systemFontBold, 20 ) row.titleText.anchorX = 0 row.titleText.anchorY = 0.5 row.titleText:setFillColor( 0 ) row.titleText.y = 20 row.titleText.x = 42 row.flag = display.newImageRect( params.flag,70, 46 ) row.flag.anchorX=0 row.flag.anchorY=0 row.flag.x= 0 row.flag.y = row.height \*0.5-row.flag.height\*0.5 row.countryText = display.newText( params.country, 12, 0, native.systemFont, 18 ) row.countryText.anchorX = 0 row.countryText.anchorY = 1.0--0.5 row.countryText:setFillColor( 0.5 ) row.countryText.y = 40 row.countryText.x = 75 row.rightArrow = display.newImageRect(myApp.icons, 15 , 40, 40) row.rightArrow.x = display.contentWidth - 20 row.rightArrow.y = row.height / 2 row:insert( row.rightArrow ) row:insert( row.countryText ) row:insert( row.flag ) end return true end