Find a table row by ID and edit its cells?

I need to edit values in a table where the rows/cells are generated dynamically by Bootgrid so they have no html id. I am currently doing this by going to tr:nth-child, but this only works if the value I set for rowID corresponds to that position in the table.

Ex: If I remove the 3rd item from the table, the item with rowID=4 is now the 3rd child of the tr, and the following code will edit the wrong cells.

I need to be able to find the correct row to edit by ID, not position in the grid. I posted a similar question yesterday, but I have improved this to better clarify what I am trying to do.

// I get the rowID by clicking an Edit button on the table row, like this:
rowID = $(this).data("row-id");