gridtostring