title: Microsoft WinForm ReportViewer from List
body: <p>Can anyone provide a Code Snippet, Tutorial link or information on how to create a report in Microsoft Report from a List of objects?</p>
  
  <p>I have the following Dog class:</p>
  
  <pre><code>namespace MyNS
  {
     public class Dog
     {
        public int Legs { get; set; }
        public string Name { get; set; }
        public string Breed { get; set; }
     }
  }
  </code></pre>
  
  <p>Then, in Window Forms, I have a ReportViewer objetct which I would like to populate from a <strong>List</strong> of <strong>MyNS.Dog</strong> objects like this:</p>
  
  <pre><code>List&lt;MyNS.Dog&gt; MyDogs = new List&lt;MyNS.Dog&gt;();
  // populate array here
  // and use it as datasource for ReportViewer
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>