From forum: (http://www.devage.com/Forum/ViewTopic.aspx?id=32f12b705b8449eaaa073c65b2a2269c)
--------------
It seems like when the area is being calculated for the selection box that it should overlap with the top and left in order to make it look correct. I noticed that all of your samples use default widths and none really change much. If you modify Example17 Line 426 to have this line:
grid1[r, c].View.Border = new DevAge.Drawing.RectangleBorder(new DevAge.Drawing.BorderLine(Color.HotPink, 1, DashStyle.Solid, 0), new DevAge.Drawing.BorderLine(Color.HotPink, 1, DashStyle.Solid, 0));
And then launch it and click on a cell that is enabled. You will see the problem I'm talking about.
----------------
The problem is that the border cells are independent from the other cells border. So for example if you set set border to 1 the result is that you will have a grid with a 2 pixel border.
This is also visible when you select the cell, because the selection border overlap the cell of the current border but leaving visible only the border at the top and at the left.
One possible workaround is to create the selection border like this:
grid1.Selection.Border = new DevAge.Drawing.RectangleBorder(new DevAge.Drawing.BorderLine(Color.Black, 2, System.Drawing.Drawing2D.DashStyle.Solid, -1),
new DevAge.Drawing.BorderLine(Color.Black, 2, System.Drawing.Drawing2D.DashStyle.Solid, 0),
new DevAge.Drawing.BorderLine(Color.Black, 2, System.Drawing.Drawing2D.DashStyle.Solid, -1),
new DevAge.Drawing.BorderLine(Color.Black, 2, System.Drawing.Drawing2D.DashStyle.Solid, 0));
In this way I use a -1 pixel padding for the Top and Left border.