| PowerBuilder provides nice easy to use functions for highlighting your
detail band but sometimes you need to highlight a the groupband for the current row as
well. To achieve this you will need to add an instance variable of type long called
il_LastRow and add a dummy column to your datawindow called highlight and in the row focus
changed event add the following code: SetItem( il_LastRow, 'highlight', 0 )
SetItem( currentrow, 'highlight', 1 )
il_LastRow = CurrentRow
Then add a rectangle to your detail band and add the following expression to the
background colour:
if( sum( highlight FOR GROUP 1 ) > 0, 65535, 16777215)
|