CARREGAR SUBITENS LISTVIEW
Pessoal como faco pra carregar o sub item do listview to usando esse pra carregar so carrega uma linha...
While myData2.Read
lvwItem = ListView1.Items.Add(myData2.GetString(0))
------------------------------------------------------------------------------ EU SEI QUE E AQUI MAIS NAO SEI O CODIGO.....
End While
While myData2.Read
lvwItem = ListView1.Items.Add(myData2.GetString(0))
------------------------------------------------------------------------------ EU SEI QUE E AQUI MAIS NAO SEI O CODIGO.....
End While
While myData2.Read
Dim ItemListView As New ListViewItem(myData2.GetString(0))
ItemListView.SubItems.Add(myData2.GetString(1))
Me.lvwItem.Items.Add(ItemListView)
End While
issso mesmo tinha acabado de achar
Dim lvwItem As New ListViewItem()
myAdapter.SelectCommand = myCommand [ô] run the command
Dim myData As MySqlDataReader
myData = myCommand.ExecuteReader()
While myData.Read
lvwItem = ListView1.Items.Add(myData.GetString(0))
lvwItem.SubItems.Add(myData.GetString(1))
[ô]etc
End While
Dim lvwItem As New ListViewItem()
myAdapter.SelectCommand = myCommand [ô] run the command
Dim myData As MySqlDataReader
myData = myCommand.ExecuteReader()
While myData.Read
lvwItem = ListView1.Items.Add(myData.GetString(0))
lvwItem.SubItems.Add(myData.GetString(1))
[ô]etc
End While
Tópico encerrado , respostas não são mais permitidas