title: Setting Multiple DataKeyNames in GridView from different ActiveRecord table objects
body: <p>I'm trying to set two datakeys using the DataKeyNames property of an asp.net GridView.</p>
  
  <p>I have a simplequery as follows:</p>
  
  <pre><code>Castle.ActiveRecord.Queries.SimpleQuery&lt;ARMapping.CONFIGURATION&gt; c = new Castle.ActiveRecord.Queries.SimpleQuery&lt;ARMapping.CONFIGURATION&gt;(@"
              select c from CONFIGURATION c left join c.LUserConfiguration luc left join luc.User u left join u.Dealer d left join c.TRUCK t");
  </code></pre>
  
  <p>In the databind operation, the dealership would be evaluated as follows:</p>
  
  <p><code>&lt;</code>% Eval("LUserConfiguration.User.Dealer.DealershipID") %<code>&gt;</code></p>
  
  <p>But when I try to set DataKeyNames="ID,LUserConfiguration.User.Dealer.DealershipID", I get error:
  " DataBinding: 'ARMapping.CONFIGURATION' does not contain a property with the name 'LUserConfiguration.User.Dealer.DealershipID'. "</p>
  
  <p>It doesn't complain when it's Eval'd, but I can't put Eval in the DataKeyNames property.</p>
  
  <p>Any ideas?</p>