title: read contents of a xml file into a data grid view
body: <p>Im using c# .net , windows form application. I have a XML file which contains two columns and some rows of data. now i have to fill this data into a data grid view. im using a button, when i click on the button an open dialog box will appear. i have to select the xml file name and when i click on open the contents of that xml file should come to the data grid view. i have tried with the following code: </p>
  
  <pre><code>{
  XmlDataDocument xmlDatadoc=new XmlDataDocument();
  XmlDatadoc.Dataset.ReadXml(filename);
  ds=xmlDatadoc.Dataset;
  datagridview1.DataSource=ds.DefaultViewManager;
  datagridview1.Datamember="language";
  }
  </code></pre>
  
  <p>My xml file is:</p>
  
  <pre><code>&lt;languages&gt;
  &lt;language&gt;
    &lt;key&gt; key1&lt;/key&gt;
  &lt;value&gt;value1&lt;/value&gt;
  &lt;/language&gt;
  
  &lt;language&gt;
    &lt;key&gt; key2&lt;/key&gt;
  &lt;value&gt;value2&lt;/value&gt;
  &lt;/language&gt;
  &lt;/languages&gt;
  </code></pre>
  
  <p>Its working fine but only for "language" . I need it to work file other xml files also.</p>