How do I save data from a DataGridView to an XML file using the SaveFileDialog? 
<p>How do I save data from a <code>DataGridView</code> to an XML file using the <code>SaveFileDialog</code>?</p>

<pre><code>saveFileDialog1.Title = "Save File";
saveFileDialog1.InitialDirectory = "C:\\XML\\";
saveFileDialog1.Filter = "XML file (*.xml)|*.xml";
saveFileDialog1.FilterIndex = 2;
saveFileDialog1.RestoreDirectory = true;
saveFileDialog1.FileName = "";

if (saveFileDialog1.ShowDialog() == DialogResult.OK)
{
</code></pre>
