I think you may be barking up the wrong tree with the 40 pin. All the display connection are on the CPU board.
Do you tried the questionable CPU and Driver board with a known working Master Display board - same problem.
Are you putting the questionalble boards in another machine that was working? If so, we can rule out the wiring.
Have you tried the CPU board with a known working Driver and Master Display board? If the same problem exists, then we can confirm the problem is not with the driver board (or 40 pin).
This leaves us to the CPU board once you confirm the above.
Start by carefully inspecting the 1J5, 1J6, 1J7 for bad solder joints. Even if they look good, reflow the solder on all these header pins or better yet, re-pin those headers.
Inspect R38 through R94 and C38 through C61 for damage (they are just below the headers mentioned above).
If these do not prove to find the solution, follow the procedure that barakandl mentioned above to determine if the 74154 (IC6) is at fault or the PIA (IC18) is at fault.
A little more detail to what Andrew provided:
The 74154 inputs are on pins 20, 21, 22, 23
The 74154 outputs are on pins 1-11 and 13-17