There are no cheat codes. The DS version of LEGO Batman: The Videogame (2008) does not include a cheat entry system. No button combos, no menu, no password screen.
Action Replay codes exist for the ROM (infinite health, studs, unlock all), but:
Enjoy the intended progression. The DS version is a tight, complete package without cheats.