In the second image you posted, we see that you have carried out a new search, that row has remained highlighted and it is precisely in DataUpdated event that you have to manage it, not before carrying out the search.
If you wanted to do the latter, you would have to modify the B4XTable to add a TextChanged event to the search view (which is different depending on the "language", B4A, B4J, B4I).
Thanks Luca for your answer.
I'll explain because i would like to avoid managing it in the DataUpdate event.
This event fires after searching.
In the grid, the row is highlighted in green under certain conditions.
When I search through SearchFilter, the same condition may occur. So it would be necessary to highlight the same.
I'll give you an example:
If you see in the first image there are 7 records. The 6th record is highlighted in green (it has the date 06/02/2023)
If you look at the second image, I searched via SerachFilter, so if I search by reporting the teacher's name, I would have expected the second row (it always has the date 06/02/2023) to be highlighted.
Instead it is not highlighted and always leaves the 6 line highlighted which it shouldn't.
Using the DataUpdate event that fires after the SeachFilter search, I can restore the colors, but I don't get the desired effect described above.
In essence, the SearchFilter does not restore the initial situation and does not report all the properties set while reading the DB such as highlighting the record.