Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
The GridView 'GridViewID' fired event Sorting which wasn't h
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
The GridView 'GridViewID' fired event Sorting which wasn't h
Environment versions
Environment:
C# 2.0
OS:
Vista
Database:
MS SQL Server
Miscellaneous
Thread ID:
01310811
Message ID:
01310811
Views:
248
Hello everyone,
This is long, but I really will appreciate your input because I need it.
I'm trying to sort a gridview when the user clicks on the column header, the grid view is assigned the datasourse at run time base on the results of a query made from input from the user, because of this there is not DataSourceID on the grid and when the user clicks on the header I get:

The GridView 'GridViewID' fired event Sorting which wasn't handled

I tried to implement the solution suggested in this link:

http://forums.asp.net/t/956540.aspx

with no success, the line:

DataTable dataTable = gridView.DataSource as DataTable;

Returns a NULL DataTable which prevet the code to do the sorting.

Any ideas are welcome

Thanks much

Luis
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Reply
Map
View

Click here to load this message in the networking platform