list and a dbllist through a bind function

Hello
I should link a list and a dbllist through a bind function.
The list contains elements extracted from a database and these elements belong to different categories (see example)
in the dblist, on the other hand, elements extracted from another table must appear, also subdivided into categories.
I would like each element of the list belonging to a category to be shown in the bdllist of the elements that share the same category.

My problem is that the dbllist element can only have two information: id and value

How can I connect these two elements in the same screen ??

Thank you