I have an asp gridview which is connected to my sql database via LINQ. I have it bound in the code behind. I also do the usual,
AllowSorting="True"
and I set the sort expression for each column: ex-
<asp:BoundField DataField="BorrowerDateOfBirth" HeaderText="Date Of Birth"
DataFormatString="{0:d}" SortExpression="BorrowerDateOfBirth" >
</asp:BoundField>
But when I run the application, and click the column headers to sort, the application fires an exception error that reads:
"The GridView 'gridview1' fired event Sorting which wasn't handled."
I looked this error up online but I only found responses related to C# code. I tried converting them to vb.net but the error still persisted.
Does anyone know how to handle sorting of an asp gridview in vb.net?