RAF,
You can't, at least without custom painting. If you want to draw a
dashed line, you will have to set the border style of the grid to None, and
then draw the dashed lines in the space where the border would be.
Fortunately, it does not look like the grid changes its size when you change
the border style, so the space where the border would be should be empty
when you set the border style to none.
To draw the dashes, you will want to create a Pen to use with the
DrawRectangle method on the Graphics instance passed to your event handler
(or OnPaint method). On that Pen instance, you would change the DashStyle
property to one of the values in the DashStyle enumeration, most likely
DashStyle.Dash or DashStyle.Dot.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> Hi,
>
[quoted text clipped - 7 lines]
>
> RAF
R.A.F. - 25 Oct 2007 10:15 GMT
But Custom painting means in this case to redraw the whole control :-(
> RAF,
>
[quoted text clipped - 10 lines]
> property to one of the values in the DashStyle enumeration, most likely
> DashStyle.Dash or DashStyle.Dot.
Nicholas Paldino [.NET/C# MVP] - 25 Oct 2007 15:36 GMT
No, not really. You can call the base implementation, and then draw
OVER that. Since you are just drawing a border, you shouldn't have a
problem.

Signature
- Nicholas Paldino [.NET/C# MVP]
- mvp@spam.guard.caspershouse.com
> But Custom painting means in this case to redraw the whole control :-(
>
[quoted text clipped - 12 lines]
>> DashStyle property to one of the values in the DashStyle enumeration,
>> most likely DashStyle.Dash or DashStyle.Dot.