No official cheat codes exist for LEGO Batman: The Videogame on Nintendo DS.
Third-party cheat devices (Action Replay DS, R4 cards) can:
Play fair. The red brick system is the intended "cheat" mechanic—earn it.