How to refresh the selection of rows in a table UI element?
I have created a table using table UI element.
The scenario is explained step by step
1) suppose that i have selected row no: 2 and 3.
2) on click of a button(say Button1) I save the selected rows locally (internal table)
3) now i select row no. 5 (the above selection 2 and 3 is not anymore )
4) on click of a button( say Button2) i want to have previous selection to be displayed (it should go on step 1).
But the problem comes after step 4:
The previous selection(row 2 and 3) is displayed but the new selection( row 5) is also selected.
Also If i read the context node it give me only rows 2 and 3 (OK).
So I am not getting how to remove the selection of row no: 5.
I have used clear selection and invalidate method but still same results.