A connection between a row and a Layout

I have a big table of tasks.
There are three types of tasks - a ToDo, Production, and Payment.
For each type, I created a layout, but it is a mass.
When I open a task, I can never know which layout will be shown.
The same for a new task.

What is needed, IMHO, is a connection between a row and a layout, i.e., a Task Type field that defines the default layout for that task.

The only way AFAIK is to use a different view for each task type. Then each view may have its own layout.