Sur le événement clique sur un buttons je veux charger une DataGridView .
Ok voila mon basic :=)

NB : dans l espace général j ai déclaré les espaceNames
==========================================
[FONT=&quot]Imports[/FONT][FONT=&quot] System[/FONT]
[FONT=&quot]Imports[/FONT][FONT=&quot] System.Data[/FONT]
[FONT=&quot]Imports[/FONT][FONT=&quot] System.Data.OleDb[/FONT]
[FONT=&quot]Imports[/FONT][FONT=&quot] Microsoft.VisualBasic[/FONT]
===========================================
[FONT=&quot]Private[/FONT][FONT=&quot] Sub CmdCharger_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CmdCharger.Click[/FONT]
[FONT=&quot] Dim MyCommand As OleDbCommand[/FONT]
[FONT=&quot] Dim myAdapter As OleDbDataReader[/FONT]
[FONT=&quot] Dim myDataSet As New DataSet[/FONT]
[FONT=&quot] Dim MySql As String[/FONT]
[FONT=&quot] Dim MyTable As DataTable[/FONT]
[FONT=&quot] Dim MyRow As DataRow[/FONT]
[FONT=&quot] Dim Mynemero As Integer[/FONT]
[FONT=&quot] Dim MyConnexion As OleDbConnection = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data source=" & _[/FONT]
[FONT=&quot] "D:\Traveaux Dot Net\stoke.mdb")[/FONT]
[FONT=&quot] Dim myCommandBuilder As OleDbCommandBuilder[/FONT]
[FONT=&quot] MySql = "SELECT * FROM Client"[/FONT]
[FONT=&quot] MyConnexion = New OleDbConnection()[/FONT]
[FONT=&quot] MyConnexion.ConnectionString = MySql[/FONT]
[FONT=&quot] MyConnexion.open()[/FONT]
[FONT=&quot] MyCommand = New OleDbCommand(MySql)[/FONT]
[FONT=&quot] myAdapter = New OleDbDataAdapter(MyCommand)[/FONT]
[FONT=&quot] MyCommand.Connection() = MyConnexion[/FONT]
[FONT=&quot] myAdapter.fill(myDataSet, "Client")[/FONT]
[FONT=&quot] MyTable = myDataSet.Tables("Client")[/FONT]
[FONT=&quot] End Sub[/FONT]
[FONT=&quot]End[/FONT][FONT=&quot] Class[/FONT]

[FONT=&quot] [/FONT]
[FONT=&quot]Lors de l execution de code un debugeur ma afficger l’erreur suivante :[/FONT]
[FONT=&quot]Une valeur de type 'System.Data.OleDb.OleDbDataAdapter' ne peut pas être [/FONT]
[FONT=&quot]convertie en 'System.Data.OleDb.OleDbDataReader'[/FONT]
et même une autre erreur :
'fill' n'est pas un membre de 'System.Data.OleDb.OleDbDataReader'
=================================================================