title: How to allow sorting of a gridview?
body: <p>I have a gridview and enabled sorting. When running the application I click on the first column to sort. And I get this error: "The GridView 'gvOutlookMeldingen' fired event Sorting which wasn't handled."</p>
  
  <p>This is the gridview: </p>
  
  <pre><code>&lt;asp:GridView ID="gvOutlookMeldingen" runat="server" AllowSorting="True" AutoGenerateColumns="False" AutoGenerateSelectButton="True" onselectedindexchanged="GridView_SelectedIndexChanged"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField HeaderText="Melder" ItemStyle-HorizontalAlign="Center" SortExpression="Melder"&gt;
              &lt;HeaderStyle BorderColor="#1A3491" Width="130px"&gt;&lt;/HeaderStyle&gt;
              &lt;ItemStyle Height="20px" HorizontalAlign="Center"&gt;&lt;/ItemStyle&gt;
              &lt;ItemTemplate&gt;
                  &lt;%# (string)Eval("Melder") %&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField DataField="Onderwerp" HeaderText="Onderwerp" /&gt;
          &lt;asp:TemplateField HeaderText="Omschrijving"&gt;
              &lt;ItemTemplate&gt;
                  &lt;div style="overflow:auto; width: 500px; height: 200px;"&gt;
                      &lt;asp:Label ID="lblOmschrijving" runat="server" Text='&lt;%# Bind("Omschrijving")%&gt;'&gt;&lt;/asp:Label&gt;
                  &lt;/div&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField DataField="Meldingsdatum" HeaderText="Meldingsdatum" /&gt;
          &lt;asp:BoundField DataField="OutlookID" HeaderText="OutlookID" /&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>Any help is appreciated</p>