![]() |
#1
|
|||
|
|||
![]()
Hi there,
I'm working with a StringGrid and I need to put diferents colors in the cells, like this: -------------------------------------------------- StringGrid.Cells[0,1].Color := clYellow and StringGrid.Cells[0,2].Font.Color := clWhite -------------------------------------------------- I've worked with Delphi 5 and I used a component that did it, but, now I need to work with Delphi 7 and this component doen't work in this Delphi version. Any Help? Thanks very much. jairobox |
#2
|
|||
|
|||
![]()
Your code don't work in _ANY_ version of Delphi. D5 doesn't support it.
If you want to draw some rows/cells in different colors/fonts, you must use OnDrawCell event for TStringGrid. See a sample: http://www.scalabium.com/faq/strgrid.zip With best regards, Mike Shkolnik http://www.scalabium.com |
#3
|
|||
|
|||
![]()
hi, download from delphi section:
http://www.hoerstemeier.com/ a component anmed: StringAlignGrid is a good component: have some good properties: sortcolumn/row, colorcell, colorrow, .... accept if help you |
![]() |
Thread Tools | |
Display Modes | |
|
|