How do I select all objects on a line?

Suppose I wanted to select all items on a (infinitely thin) line i.e. a column of a grid graph without selecting any of the adjacent edges can I do this?

Hold down the Command key (⌘) and click on the objects you want to select.