Cell recognition molecules are key regulators of neural circuit assembly. The Dscam family of recognition molecules in Drosophila has been shown to regulate interactions between neurons through homophilic repulsion. This is exemplified by Dscam1 and Dscam2, which together repel dendrites of lamina neurons, L1 and L2, in the visual system. By contrast, here we show that Dscam2 directs dendritic targeting of another lamina neuron, L4, through homophilic adhesion. Through live imaging and genetic mosaics to dissect interactions between specific cells, we show that Dscam2 is required in L4 and its target cells for correct dendritic targeting. In a genetic screen, we identified Dscam4 as another regulator of L4 targeting which acts with Dscam2 in the same pathway to regulate this process. This ensures tiling of the lamina neuropil through heterotypic interactions. Thus, different combinations of Dscam proteins act through distinct mechanisms in closely related neurons to pattern neural circuits.