On 08/10/2018 01:41 AM, Martin Schreiber wrote:
It is possible to set a color to a specific row by setting
<grid>.rowcolors[<row>].
An other option is to set <grid>[<col>][<row>].selected which shows
<grid>[<col>].colorselect.
Individual cell colors must be set in
<grid>.datacols[<col>].onbeforedrawcell().
"
procedure tmainfo.befdrawcellev(const sender: tcol; const canvas: tcanvas;
var cellinfo: cellinfoty; var processed: Boolean);
begin
if cellinfo.cell.row = 2 then begin
cellinfo.color:= cl_green;
end;
end;
"
Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk
using sgLog.rowcolors [i] := cl_green gives error "List index (0) out of
bounds."
The grid has one row and i is 0;
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
mseide-msegui-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mseide-msegui-talk