Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!
Bit of an anomaly... I have a Data Grid and I cant get the selected line to hilite... other DGs in the stack are hilting correctly but this one just won't... I have set up a simple button outside of the dg to test this problem, the code of the button is:
My usual approach is to rebuild the DG but I was heading out on a quick bike ride and thought I would post here just incase anyone had any pearls of wisdom while I was out of the office.
Anyway... when I got back I rebuilt the DG and in the process of doing so figured out what was wrong... I had renamed the background of the DGs Row Template from 'Background' to 'bg' for speeds sake in other code.... it turns out that the DG Hilite functionality references the row template background as 'Background' .... hence I had unknowingly broken the code.
In Summary
Don't rename the background of a DataGrids Row Template, leave it called 'Background'