gridview event: no overload matches delegate
<p>Here's the problem with the gridview as I have it:</p>

<p>in the aspx:</p>

<p><code>&lt;asp: GridView..... ID="MyGrid" AllowSorting = "True" OnSorting = "SortMyGrid"</code>></p>

<p>in the code behind:</p>

<pre><code>protected void SortMyGrid(object sender, GridViewPageEventArgs e)
{
     DataTable TheGridData =  MyGrid.DataSource as DataTable;
}
</code></pre>

<p>And then when I run the code:
No overload for 'SortMyGrid' matches delegate</p>

<p>What's causing this problem?</p>

<p>Thanks.</p>
