Remove specific rows from SPDataTable (SP List)

We want remove specific data rows from a SPDataTable, but with CAML filtering it's not working, because the refresh-Action also remove the selectedItems. Any ideas to solve this? We have to determine in each data row if one of the selected ID-number (column[Optionennummer]) is in the column[NichtKombinierbar].

Dear @mozilla0,
You can try selecting rows after refresh with this:

var grid = fd.control('SPDataTable1').widget;"tr:eq(0), tr:eq(1)");
1 Like