Inserting instead of replacing a row

Aug 29, 2010 at 2:24 PM
Edited Sep 1, 2010 at 2:11 PM

Hi

I am currently trying to create a ListEditor from which I can insert a row in the middle of the grid.

I am using Grid.Rows.Insert(r), however this will only replace that row with a new row.

I think insert usually means inserting a row, and push the existing rows downwards.

Will it be possible to do this instead of manually moving the rows?

Cheers

Coordinator
Aug 30, 2010 at 12:47 PM

I have just added a sample how to do that in frmExample54

Download newest sources and see there, should work

Aug 31, 2010 at 12:27 AM

Hi, I redownloaded 4.30 but I think there is no difference.

Coordinator
Aug 31, 2010 at 6:48 AM

Yes, in 4.30 there is no difference, since changes are only in the tip, they are not released yet.

 

Download from here: http://bitbucket.org/dariusdamalakas/sourcegrid

Sep 1, 2010 at 2:10 PM

Hi

I downloaded the tip (which is updated 15 days ago) but can't find a difference in example 54. Can you show me some more light :P

cheers

Coordinator
Sep 1, 2010 at 3:27 PM

Doh!  I forgot to push changes!

There, now it should contain latest changes :)

Sep 3, 2010 at 2:39 AM

Thanks a lot. It works like a charm!