Convert Grid to XML

Changed grid to be completed by XML