It just means to go against the way everyone else is doing things, as if you are sanding wood and sanding the wrong way instead of sanding with the grain. When you go against the grain, you irritate people.
It means to go against the majority because grain all goes the same way so if you go against it you go against the majority...hope it helped
Answer
The expression probably originates form the days...
Go to the Dogs - to decline in looks or health; to be ruined or destroyed.
Origin: As far back as the 1500s, food that was not thought to be suitable for human consumption was thrown to the dogs. The...