Jump to content


Photo

Copy Cells


  • Please log in to reply
1 reply to this topic

#1 Allan

Allan
  • Members
  • 2 posts

Posted 08 December 2009 - 12:52 PM

I have imported a CSV file into a NextGrid (1). I want to select several rows which have checkboxes selected and then copy these rows into a further NextGrid(2) for further processing. How can I go about this?

Al

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 09 December 2009 - 02:06 PM

Hello Allan,

Currently, only way is to do this manually. You need to add one for loop and then check if row is selected:

CODE
for i := 0 to NextGrid1.RowCount - 1 do
begin
  if NextGrid1.Selected[i] then
  begin
    NextGrid2.AddRow;
    ...


Then, you need to add this row into NextGrid2.

I hope that this helps.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users