LVGL version: Latest
I created a table, found that when press the arrow keys,the cell will be selected,but I don’t know how to set the cell to be selected manually or get which cell is selected.

LVGL version: Latest
I created a table, found that when press the arrow keys,the cell will be selected,but I don’t know how to set the cell to be selected manually or get which cell is selected.

Hi @bythy ,
Try to use lv_table_get_selected_cell() the row and col parameters are output variables where the result is stored.
uint32_t row, col;
lv_table_get_selected_cell(table, &row, &col);
if(row == LV_TABLE_CELL_NONE || col == LV_TABLE_CELL_NONE) {
// No cell is currently selected
} else {
// Use row and col
}