.net - Add image to a cell in ListView -
i want add images determinate cells in listview, can add first item, here code:
lbldata.text = lblr1.text = rulliera1.item(0).codicerulliera lblvassoior1.text = "vassoio : " & rulliera1.item(0).codicevassoio each row clstotemanime in rulliera1 dim itm listviewitem = new listviewitem("") itm.subitems.add(row.anima.descrarticolo) itm.subitems.add(row.codiceanima) if row.nonlavorare itm.imageindex = 0 else itm.imageindex = 1 end if lvr1.items.add(itm) next
with itm.imageindex = 0
can add image first element in row, want : itm.subitems(x).imageindex = 1
one more thing: how can center image in cell?
add lvs_ex_subitemimages extended style listview.
Comments
Post a Comment