Binding sub Objects to DataField and DataSource
<pre><code>class A 
{ 
  int ID; 
  B ClassB; 
}

class B 
{ 
  string Title; 
}
</code></pre>

<p>Using the above mock classes as examples - I have a dynamically created GridView. To this I bind (add to the Columns collection) X number of BoundFields and then assign a collection to the DataSource, however, my sub objects are not binding.</p>

<p>The DataField property of the BoundFields is set to "ClassB.Title" and the DataSource is a collection of objects of type A but it keeps throwing the exception "A field or property with the name 'ClassB.Title' was not found on the selected data source. "</p>

<p>Any thoughts why?</p>

<p>Cheers</p>
