devnotebook

Juan Ignacio Gelos

  Home  |   Contact  |   Syndication    |   Login
  23 Posts | 2 Stories | 48 Comments | 4 Trackbacks

News

Save the Internet: Click here
GeoURL

MSN Alerts
Get MSN alerts when this blog is updated.



Random books from my library:

Article Categories

Archives

Post Categories

.NET General

Blogs

Microsoft

| 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"

posted on Monday, November 28, 2005 7:58 AM