Salut à tous j'ai une table GESTIONBONSONARA
Nom : gfd.PNG
Affichages : 280
Taille : 14,3 Ko
pour l'ajout de mes données dans la table j'agit directement dans la datagridview
Code : Sélectionner tout - Visualiser dans une fenêtre à part
  Dim cmt As String = "insert into GESTIONBONSONARA values('" & Me.DataGridView1.CurrentRow.Cells("date du bon").Value.ToString = DateTimePickerFormat.Short & "','" & Me.DataGridView1.CurrentRow.Cells("Destination").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("Chauffeur").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("Numero Vehicule").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("Transporteur").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("Date Chargement").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("PETROLE(Ambiant)").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("PETROLE(15°)").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("SUPER(Ambiant)").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("SUPER(15°)").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("GAZOIL(Ambiant)").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("GAZOIL(15°)").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("Credit").Value.ToString & "','" & Me.DataGridView1.CurrentRow.Cells("Debit").Value.ToString & "')"
je voudrais intégré dans la cellule Me.DataGridView1.CurrentRow.Cells("date du bon").Value.ToString un DateTimepiker tel-que lors de l'insertion des données que je choisisse plutôt la date au lieu de la saisir mais la syntaxe vb.net je connais pas quelqu'un pourrais t'il m'aider? Merci d'avance