title: GridView problems
body: <p>this is the first time i try asp.net programming so i face this problem:</p>
  
  <p>i have several services that i need to communicate with and retrieve info from....
  this info need to be shown to the client.</p>
  
  <p>i decided to use a GridView control to display my data</p>
  
  <p><strong>Why do i need a grid view?</strong></p>
  
  <p>i need a gridview to view a List that i retrieve from a remote web service.
     i read that the grid view is the best choice there is to displaying data,, better than  the Table and better from The Letteral control....</p>
  
  <p><strong>What is the problem?</strong></p>
  
  <p>i cant find a way to bind the GridView with my object,, although i set the
       gridview.datasource = List/////
       gridview.databind()</p>
  
  <p>but it didnt work.</p>
  
  <p><strong>in this section i have more than one question:</strong></p>
  
  <ol>
  <li>do i have to do the binding between the grid view and the car list in the code (c#)
  or do is it better to do it in the Markup ? and how can i make such a binding?</li>
  <li>when i used the raw DataSet from the webservice it worked just fine .... but i dont think the better way is to use the data set,,, and that is way i used the encapsulation
  so i dont know if it is better or not (silly question ;) )</li>
  </ol>
  
  <p>another point is that i tested the allow sorting and allow paging on the grid view when i test it on a data from my database using ajax but it didnt work?????</p>
  
  <p>any one can help i spend a very long time trying to solve the problem,, with no luck</p>
  
  <p><em><strong>this is the code am using</em></strong></p>
  
  <pre><code>List&lt;Car&gt; test = BL.carFilterOnYearofmanuf(1980);
  GridView1.DataSource = test;
  GridView1.DataBind();
  </code></pre>