President Donald Trump accused Danish Prime Minister Mette Frederiksen of being "nasty" and "not nice" in her rejection of his idea the U.S. could buy Greenland.

"I looked forward to going but I thought the Prime Minister's statement that it was an absurd idea was nasty, it was an inappropriate statement, all she had to do was say 'no we wouldn't be interested,'" he told reporters on Wednesday.

Adding that he wouldn't allow a continuation of "the way they treated us under President Obama," Trump told the press Frederiksen's comment on a potential purchase was "a very not nice way of saying something."

"They could've told me no — this is something that's been discussed for many years," he said. "Harry Truman had the idea of Greenland, I had the idea, other people have had the idea. It goes back into the early 1900s, but Harry Truman very strongly thought it was a good idea."

On Sunday, Frederiksen said Trump's suggestion of purchasing the territory was "absurd," prompting the U.S. leader to cancel a state visit to Denmark scheduled for early September.

The President's decision to cancel the trip left Danish officials a little astonished.

Speaking to reporters Wednesday, Frederiksen said she had been looking forward to the visit and preparations were well under way.

"It is with regret and surprise that I received the news that President Trump has canceled his state visit to Denmark on the 2nd and 3rd of September," she said. "It was an opportunity, I think, to celebrate Denmark's close relationship to the U.S., who remains one of Denmark's closest allies."

Frederiksen noted that further cooperation and dialogue was needed between Denmark, Greenland and the U.S. to address climate issues in the Arctic.