I'm using a DataGridView and want to control the display of row borders based on special criteria. My stuff is providing satifactory results, however, it seems that the CurrentCell always has a dotted border, regardless of my actions. This border distracts from my changes.
Can someone tell me how to suppress the dotted border for the grid's CurrentCell
Thanks.

DataGridView CurrentCell Border
Nigel Richardson
The only way to supress the dotted focus rectangle is to handle the RowPrePaint and "and" out the focus PaintParts. Here is how I would do this in C#:< xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
e.PaintParts = e.PaintParts & ~DataGridViewPaintParts.Focus;
-mark
Program Manager
Microsoft
This post is provided "as-is"
martin.kolarik