I've done as the others replied, used an extension cord.
But if I were to want a longer cord on the grill, I would get an outdoor rated extension cord of the length desired. Then cut off the female end, remove the existing cord from the grill, then wire in the extension cord.
That way you have a molded plug for the male end. Plus it make it pretty easy.