Which greeting is correct for a letter?

 - Dear Grandpa Gary,
 - Dear grandpa gary,
The second greeting is correct:
Its first word is capitalized, and it ends with a comma. Grandpa Gary is capitalized because it is a proper noun.