Bonjour,
j'ai un datagrid que j'affiche mais je change son datasource en cours de route : resultat, sur la nouvelle version du datagrid, Exception des que je veux trier.
Exception :
[HttpException (0x80004005): The GridView 'GridView1' fired event Sorting which wasn't handled.]
Code :
1 2 3 4 5 6
| GridView1.DataSource = "";
GridView1.DataSourceID = "";
GridView1.DataSource=ObjectDataSource3 ;
GridView1.AllowPaging = true;
GridView1.AllowSorting = true;
GridView1.DataBind(); |
Merci pour votre aide precieuse
Partager