// Assume MyDataSet contains the Table that your Grid is bound to // Also, I'm assuming that you want this in a string, rather than a File StringWriter sw = new StringWriter(); MyDataSet.WriteXML(sw, XmlWriteMode.DiffGram); string MyDiffGram = sw.ToString();HTH,