Added GridToString method