TextBox.Text=Form_Parent.DataGridView.Rows(Form_Parent.DataGridView.CurrentRow.Index).Cells(IndexColonneRecerchée).Value.ToString
TextBox.Text=Form_Parent.DataGridView.CurrentRow.Cells(IndexColonneRecerchée).Value.ToString
Form_Parent.DataGridView.CurrentRow.Cells(IndexColonneRecerchée).Value = TextBox.Text
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim ID As Integer = Form_Parent.DataGridView.CurrentRow.Cells(0).Value Dim MaTable As DataTable = Form_Parent.ObjetDataSet.Tables("la_table") Dim Row As DataRow = MaTable.Rows.Find(ID) If Row IsNot Nothing Then With Row .Item("Nom") = txtNom.Text .Item("Code") = txtCode.Text End With End If Form_Parent.ObjetDataAdapter.Update(MaTable)
avec une base sql server en utilisant une connexion ODBC