How to avoid mixup between rowcallback and sorting in datatable
问题 With the help of a previous question, I can now style selected rows (intended for the user to select rows to be excluded from further analysis), but I have found out that sorting the datatable after executing the functionality to exclude rows (gray them out and add a different icon, keeps the icon in the correct row, but grays out the wrong rows. here is the table after deselecting rows 2,3 and 4 before sorting: and after sort: (with the crosses at the right rows, but the graying out not.