Education expenses and dependent status

My Grandfather has money set aside to pay for both of my son's college education.  He will pay up to $50,000 per year per son.  He will be paying directly to the school.  Are there certain things he can't pay for and how will that affect our claiming our son as a dependent?