Welcome,
You need to use the table’s “draw” event to change these things on the fly.
See the example I posted in an earlier thread and this example in the documentation: Table (lv_table) — LVGL documentation , as you can see, the top row of the table has a different color.
Let me know if anything is unclear and I’ll try to help further.