Copying data from AdvStringGrid to ListBox.

Hi Experts,

I've got another question concerning AdvStringGrid.

I've got 1 Column available on the AdvStringGrid  and need to copy it's contents to a ListBox.

Just the field contents ...no header.

Hope you can help!

Thanks

ST3VO
ST3VOAsked:
Who is Participating?
 
Eddie ShipmanAll-around developerCommented:
ListBox1.Items.Assign(AdvStringGrid1.Cols[1]);
ListBox1.Items.Delete(0);
0
 
ST3VOAuthor Commented:
Wow...was that all I needed to do :o/  hehehe I got it to work by creating a whole loop! I don't know why I complicate my life so much!

Your's works perfect, so I'm using your's instead of my loop!!. Thanks a million :o)
0
 
Eddie ShipmanAll-around developerCommented:
Remember, a stringgrid's columns and rows are TStringLists, well actually they are of type
TStrings.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.