Kbase P171538: UltraGrid InitializeRow event does not fire when expected
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  17/09/2010 |
|
Status: Unverified
SYMPTOM(s):
UltraGrid InitializeRow event does not fire when expected
InitializeRow does not fire when query is executed with a different date in the WHERE clause
Message in InitializeRow event handler is not displayed
Can see UltraGrid rows changing their background color in the application
FACT(s) (Environment):
InitializeRow does fire for each row the first time the UltraGrid is displayed.
New query object is created each time a query is executed with a different date in the WHERE clause.
Windows
OpenEdge 10.2x
CAUSE:
The query in question was used with a different control in the same form; it was not the data source for the UltraGrid. The programmer was using code in an event handler for the other control to change the background colors of certain cells in the UltraGrid to reflect the changed values in the other control. This did not change the data in the UltraGrid rows in any way, and therefore did not cause the InitializeRow event to fire.
FIX:
Do not rely on the InitializeRow event to fire in response to a change of a property of the row, such as an Appearance property. InitializeRow fires each time the data in the row is initialized or re-initialized (i. e. refreshed) from its data source.