Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The GridView 'GridViewID' fired event Sorting which wasn't h
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
The GridView 'GridViewID' fired event Sorting which wasn't h
Versions des environnements
Environment:
C# 2.0
OS:
Vista
Database:
MS SQL Server
Divers
Thread ID:
01310811
Message ID:
01310811
Vues:
249
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
Répondre
Fil
Voir

Click here to load this message in the networking platform