How to pass listView items to text

0

I have a listView with some items and columns, I would like to know how to pass everything to a textBox, in the form of text itself. Example:

The table:

ID    NOME    IDADE
0     Luis     47
1     Juca     69

In the TextBox:

0 Luis 47
1 Juca 69

How could I do this or something similar?

    
asked by anonymous 24.01.2016 / 17:41

1 answer

1

This can help, explains how to fill out and search item, just take the part of the loop: link

create a stringBuilder, create three more string variables to receive the ID, NAME, and AGE, all outside the loop. Inside the loop you concatenate and add in stringBuilder

dim test as stringBuilder ()

test.Append (Id & "& NAME &" & AGE & "vbVrLf")

To use stringBuilder does test.ToString ()

    
25.01.2016 / 18:58