• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 196
  • Last Modified:

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
0
ST3VO
Asked:
ST3VO
  • 2
1 Solution
 
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

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now