The grainy texture comes from sugar crystals. You can use the honey as is or warm it to restore a pourable texture.
Glucose can come out of solution and form crystals. The rate varies with the honey and its storage conditions.
Filtration and storage can affect how fast crystals appear. Use the beekeeper and place of harvest to learn where your honey comes from.
Canola honey tends to crystallize quickly. Black locust honey, often sold as acacia, tends to crystallize slowly. Each jar can behave differently.
Set a heat-safe jar of honey in warm water. Keep water out of the jar and stir gently until the crystals dissolve to your liking.
Keep honey in a sealed container at room temperature. Refrigerator temperatures can speed up crystallization.