A school has been given a national teaching award for a learning scheme between its nursery pupils and their "grandfriends".