title: How to enable Automatic Sorting of IEnumerable Data in GridView?
body: <p>How can I enable automatic sorting of my BLL which returns a list,  CustomerList:List in a GridView?</p>
  
  <p>Customer is my own strongly typed class and CustomerList is a List of customers.</p>
  
  <p>I know one approach is to set the AllowSorting property to true in the GridView and handle the OnSorting event and calling a sorting method defined in my CustomerList class.</p>
  
  <p>However I would like a solution which is automatic in the sense that I do not have to handle the OnSorting Event, it should be like how GridView handles automatic sorting for DataView, DataTable, and DataSet. </p>
  
  <p>Is there an Interface I need to implement on my CustomerList or Customer class that will enable that functionality?</p>
  
  <p><a href="http://img260.imageshack.us/img260/3373/aa479347gridviewfg21enu.gif">alt text http://img260.imageshack.us/img260/3373/aa479347gridviewfg21enu.gif</a></p>