I just upgraded to Lion, and was having problems with my old XCode installation, so I just removed it completely by running
sudo /Developer/Library/uninstall-devtools
sudo rm -rf /Developer
Now having removed the developer tools, I would like to reinstall them. But as soon as I go to the App Store, XCode is still marked as installed. How can I make the App Store realize that XCode has been uninstalled?