title: DataBinding: 'DynamicClass1' does not contain a property with the name 'EmployeeID'
body: <p>i have used aggregate function in List Page of dynamic datawebsite. When it execute it gives me,
  <strong>DataBinding: 'DynamicClass1' does not contain a property with the name 'EmployeeID'.</strong> </p>
  
  <pre><code>  &lt;asp:GridView ID="GridView1" runat="server" DataSourceID="GridDataSource"
                  AllowPaging="True" AllowSorting="True" CssClass="gridview"&gt;
                  &lt;Columns&gt;
                      &lt;asp:TemplateField&gt;
                          &lt;ItemTemplate&gt;
                              &lt;asp:HyperLink ID="EditHyperLink" runat="server"
                                  NavigateUrl='&lt;%# table.GetActionPath(PageAction.Edit, GetDataItem()) %&gt;'
                              Text="Edit" /&gt;&amp;nbsp;&lt;asp:LinkButton ID="DeleteLinkButton" runat="server" CommandName="Delete"
                                  CausesValidation="false" Text="Delete"
                                  OnClientClick='return confirm("Are you sure you want to delete this item?");'
                              /&gt;&amp;nbsp;&lt;asp:HyperLink ID="DetailsHyperLink" runat="server"
                                  NavigateUrl='&lt;%# table.GetActionPath(PageAction.Details, GetDataItem()) %&gt;'
                                  Text="Details" /&gt;
                          &lt;/ItemTemplate&gt;
                      &lt;/asp:TemplateField&gt;
                  &lt;/Columns&gt;
  
                  &lt;PagerStyle CssClass="footer"/&gt;        
                  &lt;PagerTemplate&gt;
                      &lt;asp:GridViewPager runat="server" /&gt;
                  &lt;/PagerTemplate&gt;
                  &lt;EmptyDataTemplate&gt;
                      There are currently no items in this table.
                  &lt;/EmptyDataTemplate&gt;
              &lt;/asp:GridView&gt;
  
              &lt;asp:LinqDataSource ID="GridDataSource" runat="server" 
              ContextTypeName="DataClassesDataContext" 
                TableName="Employees" 
                GroupBy="EmployeeNo"
                Select="new(Key, 
                  Max(Version) As VersionNo)"
              EnableDelete="true"&gt;
                  &lt;WhereParameters&gt;
                      &lt;asp:DynamicControlParameter ControlID="FilterRepeater" /&gt;
                  &lt;/WhereParameters&gt;
              &lt;/asp:LinqDataSource&gt;
  </code></pre>
  
  <p>I have not changed any of the default code except i have added ContextTypeName,TableName, GroupBy and select in Linq Data source... 
  Table "Employees" has "EmployeeID, EmployeeNo, EmployeeName, Department, Address, City, State, Country, Version" as columns.. </p>
  
  <p>Any idea how to solve this?</p>
  
  <p>Thanks in advance!</p>
  
  <p>Regards,
  Bala</p>