The current iMacs can extend the desktop to added screens. The confusion comes from the iMac G4 which did not allow for extending the desktop, only mirroring.
The MiniDVI to DVI adapter, may only have a DVI-D connector on it, so make sure the cable you use is DVI-D not DVI-I.
TEG