j'ai un petit probleme au niveau d'un gridview j'ai untiliser .
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 .
Partager