How to pass listview items to text

Asked

Viewed 251 times

0

I have a listview with some items and columns, I would like to know how to pass everything to a textbox, in text form same. Example:

The table:

ID    NOME    IDADE
0     Luis     47
1     Juca     69

Na Textbox:

0 Luis 47
1 Juca 69

How could I do this or something like that?

1 answer

1


This can help, explains how to fill and search for item, just grab the part of the loop: http://www.macoratti.net/13/09/vbn_pilv1.htm

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

dim test the stringbuilder()

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

To use stringbuilder makes test.Tostring()

Browser other questions tagged

You are not signed in. Login or sign up in order to post.