This project is read-only.

Can not change ColumnSpan "from right to left"

Dec 5, 2009 at 12:46 PM

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.

Dec 7, 2009 at 12:49 PM

Thanks for the problem!

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

Dec 8, 2009 at 9: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

Dec 8, 2009 at 12:00 PM

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 2: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.

 

Dec 9, 2009 at 9: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