euh je vois pas comment mettre les liens du paging moi même. ce que je ne comprend pas c'est comment il fait pour m'afficher les "<>" en bas de datagrid et pas me donner les liens.
en fait sur le load, je fais appel à une fonction filldatagrid que j'ai définie :
Public
Function FillDataGrid(ByVal nomDataGrid As DataGrid, ByVal Req_SQL As String, Optional ByVal EditIndex As Integer = -1) As Boolean
'Ouverture de la connexion
Dim monReader As SqlDataReader
Try
monReader = SQL_Reader(Req_SQL)
Catch ex As Exception
FillDataGrid =
False
End Try
nomDataGrid.DataSource = monReader
If Not EditIndex.Equals(Nothing) Then
nomDataGrid.EditItemIndex = EditIndex
End If
nomDataGrid.DataBind()
monReader.Close()
End Function
et la fonction SQL_Reader
Dim
oConn As New SqlConnection(ConfigurationSettings.AppSettings("SqlServer"))
oConn.Open()
Dim myCommand As SqlCommand = New SqlCommand(Req_SQL, oConn)
Dim monSQL_Reader As SqlDataReader = myCommand.ExecuteReader(CommandBehavior.CloseConnection)
SQL_Reader = monSQL_Reader
c'est tout, il n'y a rien de plus. je ne vois vraiement pas quelle propriété il manque (ou est en trop)