Link to home
Start Free TrialLog in
Avatar of GrahamDLovell
GrahamDLovell

asked on

TStringGrid fixedRow highlight lost

When I turn off default drawing for a TStringGrid, I lose the fixed Row highlighting (on the first row in this case).

I needed to turn default drawing off as I want to use the TA_CENTER function on the headings, and TA_RIGHT on some of the columns. If I don't turn it off, the data appear twice in each column.

Can I set the background color in the DrawCell function; or is there some other way to solve this problem?
ASKER CERTIFIED SOLUTION
Avatar of Pierre Cornelius
Pierre Cornelius
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GrahamDLovell
GrahamDLovell

ASKER

I haven't implemented your full solution yet, but I have taken your canvas.brush.color settings, which has put me on the right track.

Thanks again. The TStringGrid provides great functionality, but it takes a bit of work, and I can see that there is a learning curve I haven't quite mastered yet.
Glad i could be of assitance. Good luck.