Re: [Data Grid] Duplicate large amount of rows

2010-05-01 Thread zryip theSlug
2010/5/1 Trevor DeVore : > On Apr 30, 2010, at 2:04 PM, zryip theSlug wrote: > >> However the Data Grid command "AddData" does more than a simple >> creation of a new index in an array. This is where I'm suspicious with >> my code. > > AddData has to update any caches that are created when setting

Re: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread Trevor DeVore
On Apr 30, 2010, at 2:04 PM, zryip theSlug wrote: However the Data Grid command "AddData" does more than a simple creation of a new index in an array. This is where I'm suspicious with my code. AddData has to update any caches that are created when setting the dgData. If you are updating the

Re: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread zryip theSlug
2010/4/30 Bob Sneidar : > I would be careful with using arrays this way. I seem to recall in the > command reference that combining an array will delete duplicate keys. As long > as your keys are all unique you should be safe, but I would check the command > reference for the join function you a

Re: [Data Grid] Duplicate large amount of rows

2010-04-30 Thread Bob Sneidar
I would be careful with using arrays this way. I seem to recall in the command reference that combining an array will delete duplicate keys. As long as your keys are all unique you should be safe, but I would check the command reference for the join function you are using. I quote: > Comments:

[Data Grid] Duplicate large amount of rows

2010-04-29 Thread zryip theSlug
Hi all, First to duplicate rows in a DG, I used the AddData command in a loop. But over 1000 lines to duplicate, the performances are dramatics. Then, I changed my mind. 1) I build an array with all the duplicated 2) I merge the dgData of my DG with this array by using the union command. 3) At la