L
Loogie
I am trying to add contents of a table to a listview. I am using VB.Net
2005 compact framework. I can not add the subitems using code below. I
get an error for each subitem as follows:
The targeted version of the .net Compact Framework does not support
latebound overload resolution
Dim cmd As New System.Data.SqlServerCe.SqlCeCommand("Select p_item,
p_code, p_name from product", ssceconn)
Dim myReader As SqlCeDataReader = cmd.ExecuteReader()
Dim lvi As ListViewItem
While myReader.Read()
lvi = lsGlobals.Form4.lsvProds.Items.Add(myReader("p_item"))
lvi.SubItems.Add(myReader("p_code")) 'error thrown here
lvi.SubItems.Add(myReader("p_name")) 'error thrown here
End While
Any help as to how I can add the 3 fields to my listview?
Thanks
:L
2005 compact framework. I can not add the subitems using code below. I
get an error for each subitem as follows:
The targeted version of the .net Compact Framework does not support
latebound overload resolution
Dim cmd As New System.Data.SqlServerCe.SqlCeCommand("Select p_item,
p_code, p_name from product", ssceconn)
Dim myReader As SqlCeDataReader = cmd.ExecuteReader()
Dim lvi As ListViewItem
While myReader.Read()
lvi = lsGlobals.Form4.lsvProds.Items.Add(myReader("p_item"))
lvi.SubItems.Add(myReader("p_code")) 'error thrown here
lvi.SubItems.Add(myReader("p_name")) 'error thrown here
End While
Any help as to how I can add the 3 fields to my listview?
Thanks
:L