
MSFlexGrid - Highlight specific rows
released on Mon, 30 Jun 2003 09:23:32 -0700 bearing the
following fruit:
Quote:
>Hello,
>I am trying to pull data from a database, and depending on
>one field "ResolvedDate", would like to distinguish
>between the ones that have a resolved date, and the ones
>that do not.
>Each row comes in individually through a class in the
>application. As each row comes in, I check for
>the "ResolvedDate" with an if statement.
>I have tried grid.Highlight, which is just the color of
>the currently selected row.
>I have tried grid.cellBackColor, but it only works with
>selected cells.
Which is exactly what you want. If fillstyle is set to
repeat then you can set a row, or whole block of cells in
one go.
Quote:
>Is there a way to change the back color of, preferrably a
>row but at least the first cell, of multiple rows, while
>not necessarily selecting them?
As above. Set .Row, .Col and .ColSel then set the
backcolour, if FillStyle is set to repeat it will colour the
whole line.
eg.
.Row = 10
.Col = .FixedCols
.Cols = .Cols-1
.CellBackColor = vbred
J
--
Becoming a locksmith turned out to be his key to success. (Jumble)
[Abolish the TV Licence - http://www.tvlicensing.biz/]