gridview sorting
<p>I have a gridview that I load from a linq query.</p>

<p>MyGridData is a the list that's returned from the linq query and that contains a variable called MyVariable. So, in the code behind  I have:</p>

<pre><code>MyGrid.DataSource = MyGridData;
MyGrid.DataBind();
</code></pre>

<p>I then went to the aspx source and added AllowSorting = true and to the boundfield I want to enable sorting for, I added SortExpression = "MyVariable".</p>

<p>When the page renders, if I click on the header of the column to sort the grid, I get a yellow death screen with this message: </p>

<pre><code>The GridView 'MyGrid' fired event Sorting which wasn't handled
</code></pre>

<p>What am I doing wrong?</p>

<p>Thanks.</p>
