|
hiya, I'm trying to do the above.
However, the only text that appears in my listbox is:
userCtrlName + RowItem userCtrlName + RowItem userCtrlName + RowItem
here is the code: I assign to a datatable. I know that the datTable contains valid data, because I check it with the "watch"
Dim dtMemoText As New DataTable dtMemoText = FunctionThatRetrnsPopulatedDatatable()
Dim currRow As DataRow Dim dRows As DataRow()
For Each row As DataRow In dtMemoText.Rows
Dim drv As DataRowView
currRow = row
lstMemo.Items.Add(New RowItem(CStr(row("memoId".ToString)), (CType(row("memoDate"), DateTime)), CStr(row("userName")), CStr(row("memoText"))))
Next row <\code>
BTW, I have correctly setup the rowItem structure etc.
Can anyone help? Can I clarify anything?
Many thanks, yogi
|