Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing TStringGrid automatic highlighting - how to do?

Status
Not open for further replies.

CHeighlund

Programmer
Jun 11, 2007
163
0
0
US
I've been using some TStringGrid components in a project, and I'm running across something.

Whenever I click on a non-fixed cell in the grid, whatever cell was last clicked on (or the upperleft-most non-fixed cell if I'v just clicked on the grid for the first time) gets a sort of blue highlighting over it. This doesn't change the actual data in the grid, nor does it seem to have any adverse effects on my program, but my boss doesn't like it, as it gives a misleading impression as to what cell has just been clicked on.

Does anyone know of a way to prevent this 'highlighting' effect from occuring?
 
I think the only way you can do it (without creating another control) is set the DefaultDrawing property to false. Which means you must monitor the grid and toggle this property depending on the state of the grid.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top