google
ref
mid 19th century: back-formation from gridiron.
wiktionary
ref
From a shortening of griddle or gridiron.
etymonline
ref
grid (n.)
1839, shortening of gridiron or griddle. City planning sense is from 1954 (hence gridlock). Meaning "network of transmission lines" first recorded 1926.