Having an issue with sorting on a gridview that is bound to a datatable.. the below is what I am doing.. I found this snippet and adapted It for my needs.. when I click on a column header I get a exception. The C# is attached below the error..
Object reference not set to an instance of an object.
Description:
An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: ...
Go to the complete details ...