Diniz d' Alpoim
Diniz d' Alpoim( c.1300 -?) was a Portuguese nobleman, Lord of Esgueira, He served as ambassador to Aragon in times of Afonso IV.
Denis of Portugal
Denis (9 October 1261 – 7 January 1325 in Santarém), called the Farmer King ("Rei Lavrador") and the Poet King ("Rei Poeta"), was King of Portugal.
The eldest son of Afonso III of Portugal by his second wife, Beatrice of Castile, and grandson of king Alfonso X of Castile (known as the Wise), Denis succeeded his father in 1279.
His marriage to Elizabeth of Aragon, who was later canonised as a saint of the Roman Catholic Church, was arranged in 1281 when she was 10 years old.
Denis ruled Portugal for over 46 years.
He worked to reorganise his country's economy and gave an impetus to Portuguese agriculture.
He ordered the planting of a large pine forest (that still exists today) near Leiria to prevent the soil degradation that threatened the region and as a source of raw materials for the construction of the royal ships.
He was also known for his poetry, which constitutes an important contribution to the development of Portuguese as a literary language.
Nicoloso da Recco
Nicoloso da Recco was a 14th-century Italian navigator from Genoa, who visited the Canary Islands in 1341 on behalf of Afonso IV of Portugal.
He is credited with providing the first reliable account of the language used by the aboriginal inhabitants of the Canary Islands, the Guanches.
An Italian Navy destroyer, "Nicoloso da Recco", bore his name during World War II.
Beatriz, Duchess of Viseu
Infanta Beatriz of Portugal( 13 June 1430 – 30 September 1506) was a Portuguese infanta, daughter of John, Constable of Portugal( fourth son of King John I of Portugal and his wife Philippa of Lancaster) and Isabella of Barcelos a daughter of Afonso I, Duke of Braganza.
Martim Afonso de Brito
Martim Afonso de Brito( 14th- century) was a Portuguese nobleman, member of the Court of Afonso IV.
He was appointed Canon of the Archdiocese of Braga.
Peter I of Portugal
Peter I( Portuguese:" Pedro I"( 8 April 1320 – 18 January 1367), called the Just or the Cruel( Portuguese:" o JustoO Cruel"), was King of Portugal from 1357 until his death.
He was the third but only surviving son of Afonso IV of Portugal and his wife, Beatrice of Castile.
Eleanor of Portugal, Queen of Aragon
Eleanor of Portugal( 1328- 30 October 1348), was a Portuguese" infanta" and queen consort of Aragon from 1347 to 1348.
The youngest daughter of King Afonso IV of Portugal and Beatrice of Castile, Leonor was the granddaughter of King Denis and Elizabeth of Aragon and of Sancho IV of Castile and Maria de Molina and sister of King Peter I of Portugal.
Afonso IV of Portugal
Afonso IV (8 February 129128 May 1357), called the Brave , was King of Portugal from 1325 until his death.
He was the only legitimate son of King Denis of Portugal by his wife Elizabeth of Aragon.
Maria of Portugal, Queen of Castile
Maria of Portugal  (9 February 1313 – 18 January 1357) was a Portuguese princess who became Queen of Castile upon her marriage to Alfonso XI in 1328.
She was the first daughter of King Afonso IV of Portugal and his first wife Beatrice of Castile.
Gonçalo Vasques de Moura
Gonçalo Vasques de Moura( born-14th- century) was a Portuguese nobleman, Alcaide of Moura and Guard of Afonso IV of Portugal.

Question: Who is Afonso Iv Of Portugal's paternal grandfather?
Answer: Afonso III of Portugal