Due to their high efficiencies, along with lower production costs, many researchers are working on dye-sensitized solar cells (DSSCs) over last few decades as a substitute technology for nonconventional energy. Nanostructured ZnO has got many interesting properties such as wide band gap, large exciton binding energy, good exciton stability, and high breakdown strength, which are applicable as DSSC electrodes. This present work compares the device properties of DSSC fabricated using ZnO nanorods on a ZnO film and ZnO nanopowders. Different types of ZnO photoanode and dye combinations are used to study the stability and photovoltaic properties of the DSSC cell. The photovoltaic properties of the ZnO-based DSSC samples were systematically investigated. The photovoltaic properties of fabricated cell obtained are discussed in the light of band structure and density of states of different types of ZnO nanolayers. The ZnO nanorods fabricated through the sol–gel route have more uniform thickness resulting in enhanced photovoltaic properties of the fabricated device.