Each of our treelists contains an Id column that uniquely identifies the row's object. Our first implementation was rather straightfoward in that we simply got the Id from what we know is the correct column (based on static column ordering):
row = $(event.currentTarget).closest(
versionId = parseInt(row.cells.childNodes.data);
However, since our users are able to reorder the columns, we're unable to hard-code the cell in order to find the Id of the selected row.
Given a row, how do we find which column is the "Id" column?