j'ai le méme probleme du sorting de la gridview
j'ai remarqué que vous n'avais pas contunié votre discution au niveau du trie de la gridview en fait moi aussi j'ai le méme probleme et je sais pas croit fair .
voicci mon code
query = "SELECT Statut , IDExp as [" + idexp + "],CONVERT (varchar(50), Date_exp, 103) as [" + dateexp + "],[Projet_no] as [" + nopro + "],[Type_aff] as [" + typeaff + "],[Lib_aff] as [" + libaff + "], Devise as [" + devise + "], cast(Montant as decimal(28,2)) as [" + mtt + "],cast([LCY Amount] as decimal(28,2)) as [" + mtt2 + "],[Mode_pai] as [" + modep + "],[Invoicable] as [" + refact + "] FROM [TempExpenses] where [Resource_No]='" + Session("user") + "' and " + ft + " order by Statut"
oCommand = New System.Data.SqlClient.SqlCommand(query, oConnexion)
Try
oConnexion.Open()
dProjects = oCommand.ExecuteReader
dt.Load(dProjects)
Catch ex As Exception
End Try
oConnexion.Close()
GridView1.DataSource = dt
GridView1.DataBind()
GridView1.EnableSortingAndPagingCallbacks = True
set_total_mtt()
voici l'erreur;
Le GridView 'GridView1' a déclenché un événement Sorting qui n'était pas géré
merci de me répondre .