in reply to Maximum Grid Size
I'm guessing that you're writing a Perl program to display data with Tk or some other GUI, but your question does not mention Perl. Perhaps it would help to learn how to ask a better question.