heres the function i use in Rssreader to do it
code:
/*
* ---------------------------
* Void ListViewAddRow (PlusWindow wnd , String id, Array row )
* adds a row to a listView
* ----------------------------
*/
function ListViewAddRow(window,id,row){
var pos = window.LstView_AddItem(id,row[0]);
for(var i=1;i<row.length;i++){
window.LstView_SetItemText(id,pos,i,row[i]);
}
}
use it like
code:
ListViewAddRow(PlusWnd, "xxx", Array('first column','second column','third column'));