- Glenn Barber
- PowerBuilder
- Tuesday, 8 September 2020 08:41 PM UTC
Ive been building a application that compares snapshots of tables, and have the code down to isolate the changes - now I need to highlight the background of the changed cells in a grid datawindow.
I am flagging the changed columns by setting the item status to datamodified! on the columns that were changed.
Now I need to create a global function I can call from a datawindow expression for the background color (like gf_getitemstatus (row, col) ) which will get the Status 1 when modified.
My questions is I assume I can get the row value with getRow() - how do I get the column number (ID) and return that as a number? I imagine I can hardcode the column number but was looking for a general way.
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.