I have a 2006 XKR - I had the same problem after running down a battery. I also found the help to fix the issue from a forum thread.

One item to add for future reference -window re-programming procedure is listed in the XK Driver's Handbook on 4-40.