When Harry had shown up at the funeral he had been surprised when not long after Pansy had shown up as well. Making a note to ask her about that later he had been about to go speak with Neville and Ginny when he saw Pansy there.
Distracted by an Auror he knew Harry stopped to speak with him for a few minutes and after he saw Pansy move away from Neville and Ginny he made his way over there.
"Neville," Harry said going up and clasping his hand, "I'm very sorry." He was wearing the cufflinks Neville had given him. He thought it would be a good way to honor his father. "Ginny," He greeted her with a small smile, squeezing her hand gently after letting go of Neville's.