In frappe how to auto select the row of the child table if certain condition meet programmatically?

I have used this but not working

frm.fields_dict.order_list_table.grid.grid_rows[i].select();

frm.doc.order_list_table[i].__checked = 1;

worked