Kbase P134788: Unable to set ForeColor attribute for row in Microsoft ListView ActiveX Control
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  02/09/2008 |
|
Status: Unverified
SYMPTOM(s):
Added instance of Microsoft ListView OCX to a window
Was successful in setting the ForeColor attribute for the control
Unable to set the ForeColor attribute for an individual row in the control
Error is returned that ForeColor is not a valid attribute
Setting other values (Text, Tag) for an individual row in the control is successful
FACT(s) (Environment):
Progress 9.x
OpenEdge 10.x
Windows
CAUSE:
There are two versions of the Microsoft ListView control, Version 5 and Version 6. Version 5 does not support setting the foreground color of an individual row. Version 6 does support this.
FIX:
Remove the control from the window (be sure to save any code you have attached to events for this control) then add a new instance of the ListView control and ensure that you select Version 6 of the control instead of Version 5.