TextBox8.Text = ListView2.SelectedItems(0).Text
This code only transfer item from the first column..
Please help
Thank you in advance




Posted 14 January 2013 - 06:50 PM
TextBox8.Text = ListView2.SelectedItems(0).Text
Posted 14 January 2013 - 09:33 PM
Private Sub ListView1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListView1.SelectedIndexChanged
' Copy the data from the listview into the textboxes
' If you only have a few columns then this will be OK:
Try
With ListView1
' Check that a selection has been made/remade
If .SelectedIndices.Count > 0 Then
TextBox1.Text = .Items(.SelectedIndices(0)).Text
TextBox2.Text = .Items(.SelectedIndices(0)).SubItems(1).Text
TextBox3.Text = .Items(.SelectedIndices(0)).SubItems(2).Text
End If
End With
Catch ex As Exception
End Try
End Sub
This post has been edited by kai_itz me: 14 January 2013 - 09:33 PM
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
