Yes this data in the wrong column business vexed me as well. Never really found the solution. This (sort of) works.
[edited to add hscrollbar]
Oh, and you lose the first item, (it's in the invisible header) - so either dummy first item or create the header outside the for-next I guess.
[edited to add hscrollbar]
Oh, and you lose the first item, (it's in the invisible header) - so either dummy first item or create the header outside the for-next I guess.
LCtr_ChannelItems = wxListCtrl(New wxListCtrl.Create(ctrpanel, idLCtr_ChannelItems, 5, 55, 200, 300, wxLC_REPORT | wxHSCROLL | wxLC_NO_HEADER | wxLC_SINGLE_SEL | wxSUNKEN_BORDER)) Local row:Int Local ritem:rssItem For ritem = EachIn rchan.chnItems Local wxl:wxListItem = New wxListItem.Create() wxl.SetData(ritem) wxl.SetText(ritem.Title) wxl.SetId(row) wxl.SetColumn(0) If Not row LCtr_ChannelItems.InsertColumnItem(0,wxl) Else LCtr_ChannelItems.InsertItem(wxl) EndIf row :+ 1 Print ritem.Description Next LCtr_ChannelItems.SetColumnWidth( 0, 400 )