I have a table built using a tablelayout. The user selects a row then I save the ID. At times they will leave this page and when they return to the page I would like the same row selected. Here is what I have tried as I reload the table.
if(pProgram.getId() == selectedProgramId)
{
tr.setSelected(true);
tr.setActivated(true);
}
I know I am hitting this if statement at the correct times but I can not seem to get the row to be selected. No row is selected each time I come back to the page.
Any suggestion as to what I might be doing wrong?
Thank you for all your help!