Re: Dynamically setting HighlightBackColor

Tech-Archive recommends: Fix windows errors by optimizing your registry




Would it help to use a custom method?, e.g.:
...ColumnX.DynamicWhatever = "This.customMethod()"

Proc customMethod
Do Case
Case X
&& additional code
Return RGB(255,255,255)
Case Y
Return ...


hth
-Stefan


"Andy Trezise" <andy@xxxxxxxxxxxxxxxxxxxxx> schrieb im Newsbeitrag
news:%23%23c3%23YWUIHA.476@xxxxxxxxxxxxxxxxxxxxxxx
Is it possible to set this grid HighlightBackColor property dynamically
much in the same way as you can on a grids column?

I have a grid with HighlightStyle = 2 and AllowCellSelection = .f. so the
grid gives the impression of being readonly with the current row having a
permanent back/fore colour as specified.

I use DynamicForeColor & DynamicBackColor on each of the columns so that I
can then allow the user to highlight required rows (I keep a track of the
rows selected in code).

The problem is, my grid HighlightBackColor takes precedence over the
Column.DynamicBackColor and thus when the current record is selected the
colour don't actually change until I move to another record on the grid.

Hope that makes sense!



--
|\_/| ------ ProLib - programmers liberty -----------------
(.. ) Our MVPs and MCPs make the Fox run....
- / See us at www.prolib.de or www.AFPages.de
-----------------------------------------------------------


.



Relevant Pages

  • Re: Displaying data in a grid from a foreign table
    ... This will works as Subhash has said. ... using dynamicforecolor and dynamicbackcolor based upon a field in a related ... It works just fine after you click on a cell in the grid. ... >> recordsource is set to a table. ...
    (microsoft.public.fox.programmer.exchange)
  • Re: Show non-table value inside grid
    ... I have a table whose data is shown in a grid. ... DynamicForeColor and DynamicBackColor on some of the column. ... > I'll use an example for looking up a employees name. ... >> actual discription instead of the coded value in the grid ofcourse. ...
    (microsoft.public.fox.programmer.exchange)
  • Dynamically setting HighlightBackColor
    ... Is it possible to set this grid HighlightBackColor property dynamically much ... in the same way as you can on a grids column? ... I use DynamicForeColor & DynamicBackColor on each of the columns so that I ...
    (microsoft.public.fox.programmer.exchange)