The Adventures of Greyfriars Bobby (2005)
The Adventures of Greyfriars Bobby is a family-based Scottish film released in the US in 2005 (as Greyfriars Bobby) and the UK in 2006, and directed by John Henderson. It is set in Edinburgh, Scotland, and tells the story of a West Highland White Terrier called Bobby, who will not leave his master's grave after his death. The dog faces many perils because of this, and has to endure much in his struggle to be allowed to live his life.
More at Wikipedia.