title: ASP.NET Webforms - JQGrid Populate Data with ObjectDataSource (Object in Object)
body: <p>Here's my try about JQGrid : </p>
  
  <pre><code>&lt;JQ:JQGridColumn 
                  DataField="ID" 
                  PrimaryKey="true"
                  DataType="int"
                  HeaderText="NO" 
                  Width="60" /&gt;
              &lt;JQ:JQGridColumn 
                  DataField="CustomerID.Name"
                  DataType="String"
                  HeaderText="Customer Name" 
                  Width="100" /&gt;
              &lt;JQ:JQGridColumn 
                  DataField="CustomerID.Surname" 
                  Searchable="false"
                  DataType="String"
                  HeaderText="Customer Surname 
                  Width="100" /&gt;
  </code></pre>
  
  <p>And ObjectDataSource Class is : </p>
  
  <pre><code>public class Order
  {
  private int iD;
  private Customer customerID;
  
  public Customer CustomerID
          {
              get { return customerID; }
              set { customerID = value; }
          }
  
          public int ID
          {
              get { return iD; }
              set { iD = value; }
          }
  }
  </code></pre>
  
  <p>And Customer class is like Order class. So when i try to this it's giving that error : </p>
  
  <p><strong>The column with DataField=CustomerID.Name does not exist in the datasource.</strong>  (But it does)</p>
  
  <p>How can i solve it ? Thanks.</p>