Common columns in matrix

Hi everybody,
I have a question if it is possible to use common columns in a matrix with Leds, switches and LDR's but différent rows ?
Does anyone ever tried this ?
regards
Francis Ellis

An example of what you want to do and why would help to understand the question

Rows and columns are interchangeable... just rotate the matrix by 90°. Or maybe I totally misunderstand your poorly stated question.