In reply to wilkie14c:
Just to update this again, I've had another Dell 1545 in the workshop today, fault - powers up off the charger but windows shows battery present but not charging. The cause was a disintegrated power jack on the laptop itself. The DC power contacts still conducted juice to power it but the middle pin of the plug wasn't making contact with the contact within the actual socket. New DC jack fitted and battery now charging as normal. I actually replaced the 9 pin socket itself as I have a hot air rework station but to do this at home with a soldering iron is very hard indeed. This 1545 laptop has the power, USB and VGA-out sockets all on a daughter board though and the daughter board can be replaced as a whole and only costs a tenner.
Remembering today while working on this one, in the BIOS of these machines there is a setting that you can switch on that reports the use on a 'non' Dell charger. If your battery is showing not charging then check this option on and when it starts up the POST may well tell you there is a problem detected with the charger as it did in my case today. There isn't a problem its just that the laptop can't detect that ID chip inside the charger because of the busted socket so it reports a non Dell charger in use.
Hope this helps Dell users!