How to get the id of the element of the database from dynamic list?

The question is not clear enough. Try to elaborate.