title: Sorting a gridview when databinding a collection or list of objects
body: <p>I have a GridView set up in the following way:</p>
  
  <ul>
  <li>bound to a <code>List&lt;T&gt;</code> in code-behind (I am using my own custom BOL)</li>
  <li>no DataSource Object on the HTML page</li>
  <li>sortable on each column that I choose (the <code>SortExpression</code>s are all set correctly)</li>
  </ul>
  
  <p>However, I am getting the following error message:</p>
  
  <blockquote>
    <p>The GridView 'myGridView' fired event Sorting which wasn't handled.</p>
  </blockquote>
  
  <p>What is the best way for me to get my <code>List&lt;T&gt;</code> to allow sorting?</p>
  
  <p>I am suspecting that it will have to do with specifying a function for the <code>OnSorting</code> attribute, i.e.:</p>
  
  <pre><code>OnSorting = "MySortingMethod"
  </code></pre>