title: How to set Datasource to a Datagridview Control in C#
body: <p>This might look really simple, but I am not able to figure out how to do it. I am not an expert with Databinding in C#. </p>
  
  <p>I have a list of Class objects(It is a nested Class) which looks something like this :</p>
  
  <pre><code>public class IntVector
  {
      private string customerid;
      private string hash_id;
      private string client_name;
      private string mobile_no;
      private string address;
  
      //Table
  
      private List&lt;CustomerInfo&gt; customerinfo;
  }
  </code></pre>
  
  <p>I have a list of <code>IntVector</code></p>
  
  <pre><code>private List&lt;IntVector&gt; UserData;
  </code></pre>
  
  <p>Now how to set <code>CustomerInfo</code> as the Datasource for a <code>DatagridView</code> Control which is member of the list UserData.</p>
  
  <p>Thanks</p>