title: Binding a method that returns List<employee> to a gridview
body: <p>I have method in my N-layered application that returns <code>List&lt;Employee&gt;</code>.
  Below is the sample code for the method:</p>
  
  <pre><code>public List&lt;Employee&gt; GetAllemployees()
  {
      return DAL.GetEmployees();
  } 
  </code></pre>
  
  <p>I have a GridView in my aspx page. How do I set the GridView's datasource as <code>GetEmployees()</code> so that all the employees are listed in the GridView?</p>