title: Load a DataGridView with a directory listing
body: <p>I found an answer to my question here
  <a href="https://stackoverflow.com/questions/7709910/files-in-datagridview">Files in DatagridView</a></p>
  
  <p>The trouble is I don't understand it.
  The c# code is so brief I can't figure out what it is doing.  It is one thing to cut and paste code that works but if I don't understand it at all I don't learn anything.</p>
  
  <pre><code>class looseFilesImport
  {
      public static  int loadLooseFilesDataGridView(DataGridView dgv, string folderPath)
      {
          var result = from file in new System.IO.DirectoryInfo(folderPath).GetFiles() select file;
  
          dgv.DataSource = result.ToList();
  
          return 0;
       }
  </code></pre>
  
  <p>Is there a way to expand the line starting with "var result =" into a more readable form?</p>