title: Assigning objects of different type
body: <p>I am new to VB.Net and I'm a little confused why this line happened to be valid in VB:</p>
  
  <pre><code>DataGridView1.DataSource = ds.Tables("Customerslist")
  </code></pre>
  
  <p>DataSource is of type Object while Tables("Customerslist") is of type DataTable. How will I know what types of objects can be assigned to the Datasource property?</p>