How can I make a clicked row element from a Datagrid be highlighted without refreshing the datagrid?
How can I make a clicked row element from a Datagrid be highlighted and get the last one selected before to go unhighlighted without refreshing the datagrid?
Here my case:
Every row has a status so I need every bkg row color in the datagrid to be colored according to its respective record status (Unconfirmed, Confirmed, Started, Finished, Cancelled).
If I select one row to show detail I need this row to change its bkg to a specific color used for selected elements.
If any other element gets selected then the one that was previously selected must revert its bkg color to the one according to its status.
The way I tried was by coloring the rows bkgs onLoadPage. This works ok at the beginning because nothing is selected then but when I select one row and then another one, I can't make the originally selected to get back to its original bkg color according to status.
I added a set value event for refreshing the datagrid but when doing so all the rows lose the coloring I added to them with the onLoadPage.
Could you help me?