Would you be interested in Xselections:
B4XTableSelections extends B4XTable and adds new selection modes: SINGLE_CELL_TEMP - this is the built-in selection mode. Unlike the other selection modes it disappears automatically. SINGLE_CELL_PERMANENT - selection of a single cell. SINGLE_LINE_PERMANENT - selection of a single line...
Where the backcolor remains in effect if you choose MULTIPLE_CELLS. You can sort and the backcolor remains in effect until you exit the app. You can also change the back color. If you looked at it and it is not what you want, explain your goal