views:

23

answers:

1

I am trying to format a Delphi TStringgrid depending on cell contents and position.

Whilst I can change the cell colour and shape depending on the cell contents I am having more problems with the cell borders.

I want to be able to have a thicker cell border on one side or the other every n columns

Any pointers?

Cheers

Dan

+1  A: 

Simply extend the bounds of the TRect that you are drawing in. Just because the OnDrawCell event gives you a particular TRect does not mean you are limited to just those coordinates. You have access to the entire grid's UI to draw on. So simply draw extra lines where you need them.

Remy Lebeau - TeamB