| From: "Juan Ignacio Gelos"
| Subject: DataGridView
| Date: Mon, 10 Jan 2005 14:07:46 -0300
| Lines: 11
|
| Hi,
|
| Any simple, non-overcomplicated way of preventing the focus-rectangle
| from being drawn in cells? By the way, and in case this wasnt corrected in
| the latest builds, this should be the default behavior when SelectionMode
=
| FullRowSelect.
|
| Thanks,
| Juan
|
In Beta1 build you handle the RowPrePaint event and set the CellsPaintFocus
to false. In Beta2 builds you can leave it the same or handle the CellPaint
event and OR out the Focus paint parts.
The grid always has the notion of current cell, even in FullRowSelect. This
enables editing of specific cell in a row.
Thanks,
-mark
NET Client Program Manager
This post is provided "as-is"