If you do something nice for someone and he or she doesn’t show appreciation, don’t get upset. Your kindness doesn’t obligate that person to show kindness in return. Your aim should be to show kindness, period. You are not trying to manipulate the other, to put a sense of obligation on him or her.
But if the person’s lack of caring really bothers you, I have a suggestion: Next time, find someone else to be nice to. I know Christians are supposed to show grace, but we’re also instructed not to throw our pearls before swine. Life is too short to wound yourself through the ungrateful actions of others.