Grain is a term used with wood in a lot different ways and could actually refer to different things.
In this context, we are talking about the growth rings which a result of the wood going through seasons in the year. "Earlywood" starts growth in the spring and is typically (and in the case of the maple above) the lighter colored sections where the narrower darker colored sections of the maple are "latewood" which is denser and less porous representing growth in colder temperature.
Both pic A and B are showing the same thing, just with different orientations. Pic A is perpendicular to the direction of growth so you see all the growth rings. Pic B is parallel so you see the growth rings as ovals because the cue is tapered.