Can not change ColumnSpan "from right to left"

Dec 5, 2009 at 11:46 AM

Hello!

There is a simple grid:

 

grid1.Redim(1,10);
            for (int i = 0; i < 10; i++)
                grid1[0, i] = new SourceGrid.Cells.ColumnHeader(i.ToString());

Merging cells:

            grid1[0, 7] = null;
            grid1[0, 6] = null;
            grid1[0, 5].ColumnSpan = 3;

            grid1[0, 4] = null;
            grid1[0, 3] = null;
            grid1[0, 2].ColumnSpan = 3; 


leads to an error "Can not change span" ("Given cell at position (0, 2), intersects with another cell at position (0, 5) '5'"). Actually there are no any intersections. The solution is to merge cell only "from left to right" like this:

            grid1[0, 4] = null;
grid1[0, 3] = null;
grid1[0, 2].ColumnSpan = 3;

grid1[0, 7] = null;
grid1[0, 6] = null;
grid1[0, 5].ColumnSpan = 3;

this code works fine.

Coordinator
Dec 7, 2009 at 11:49 AM

Thanks for the problem!

Could you create an issue for this? I will work to fix this

Dec 8, 2009 at 8:21 AM

 

>Could you create an issue for this? I will work to fix this

Yes, of course.

http://sourcegrid.codeplex.com/WorkItem/View.aspx?WorkItemId=4835

Coordinator
Dec 8, 2009 at 11:00 AM

Thanks!

p.s. Did you get source grid from code plex, or bitbucket site?

SourceGrid newest sources are now in bit bucket, you can find link to it in the "home" page. In fact, this is the link: http://bitbucket.org/dariusdamalakas/sourcegrid/

Dec 8, 2009 at 1:29 PM

I've used library from CodePlex site.

Thanks for reference newest sources, this problem is in bit bucket version too, but now I'll use bit bucket for updates.

 

Coordinator
Dec 9, 2009 at 8:00 AM

Ok!

I've tried to write everywhere that repository changed, but maybe it is not that visible. Or it just takes time to see that it has moved