Grint, 20, who plays Ron Weasley in the hit films, had to take a few days off work.
But he is now fit and well and will return to filming after the latest Harry Potter movie is released.
"It has just been confirmed that Rupert Grint has taken a few days out of filming due to a mild bout of swine flu," his publicist said.
"He has now recovered and is looking forward to joining his fellow cast at the premieres this week.
"He will then return to filming directly afterwards."
She said Grint's doctor confirmed he had made a full recovery and was no longer contagious.
"Other scenes were shot in his absence which did not require his involvement and thus filming was not disrupted," she added.
Grint, from Watton-at-Stone, Hertfordshire, is currently filming Harry Potter and the Deathly Hallows, the last book in the series.
Grint has appeared in all the Harry Potter films as well as the British comedy Thunderpants and the comedy drama Driving Lessons.
The next movie about JK Rowling's young wizard, Harry Potter and the Half Blood Prince, is being released in the UK on July 15.
Copyright Aaj Web, 2009