This project is read-only.

Border spanning several Cells

Apr 16, 2010 at 1:00 PM

First off I'd like to thank to all SourceGrid developers! You did an excellent job!


I also have a question regarding custom borders. I know how to create a custom border for any of my Cells within the Grid. But I would like to create Rectangular Border that would span through several Cells (something similar to Selection Rectangle but on any rectangular group of Cells), something like this:



| cell1 cell2 cell3   |

| cell4 cell5 cell6   |



Is that possible ?

Thanks in advance


Apr 16, 2010 at 2:49 PM

Maybe decorators would help your problem?


Selection is drawn using decorators. So you could create your own decorator and draw a custom graphics using that decorator.  Looking at how selection drawing code is working might give you some directions