Datagrid vb.net
miss unknown
-
miss unknown -
miss unknown -
Bonjour,
comment modifier la base de donné directement du datagrid en vb.net, svp repondez moi c'est urgent....
j'ai deja fait ce code:
Dim ligne As Integer = DataGrid1.CurrentRowIndex
command = New SqlCommand("update MaTable set champs1=" & DataGrid1(ligne, 0) & ",champs2='" & DataGrid1(ligne, 1) & "', adresse=' where champs1=" & DataGrid1(ligne, 0), cnx)
dta = New SqlDataAdapter(command)
Dim dts2 As New DataSet
dta.Fill(dts2, "MaTable")
si je mais ce code dans load ca marche pas, dans datagrid.textchanged ca marche pas, aidez moi, heelp
comment modifier la base de donné directement du datagrid en vb.net, svp repondez moi c'est urgent....
j'ai deja fait ce code:
Dim ligne As Integer = DataGrid1.CurrentRowIndex
command = New SqlCommand("update MaTable set champs1=" & DataGrid1(ligne, 0) & ",champs2='" & DataGrid1(ligne, 1) & "', adresse=' where champs1=" & DataGrid1(ligne, 0), cnx)
dta = New SqlDataAdapter(command)
Dim dts2 As New DataSet
dta.Fill(dts2, "MaTable")
si je mais ce code dans load ca marche pas, dans datagrid.textchanged ca marche pas, aidez moi, heelp
Configuration: Windows XP Internet Explorer 7.0
A voir également:
- Datagrid vb.net
- Vb.net xml ✓ - Forum Framework .NET
- Convert | VB.net ✓ - Forum Framework .NET
- Showdialog vb.net ✓ - Forum VB / VBA
- Vb.net express - Télécharger - Langages
- Combobox sur vb.net ✓ - Forum Framework .NET
1 réponse
comment modifier la base de donné directement du datagrid en vb.net, svp repondez moi c'est urgent....
j'ai deja fait ce code:
Dim ligne As Integer = DataGrid1.CurrentRowIndex
command = New SqlCommand("update MaTable set champs1=" & DataGrid1(ligne, 0) & ",champs2='" & DataGrid1(ligne, 1) & ' where champs1=" & DataGrid1(ligne, 0), cnx)
dta = New SqlDataAdapter(command)
Dim dts2 As New DataSet
dta.Fill(dts2, "MaTable")
si je mais ce code dans load ca marche pas, dans datagrid.textchanged ca marche pas, aidez moi, heelp
PS: voila mon code j'ai corrigé un truc
j'ai deja fait ce code:
Dim ligne As Integer = DataGrid1.CurrentRowIndex
command = New SqlCommand("update MaTable set champs1=" & DataGrid1(ligne, 0) & ",champs2='" & DataGrid1(ligne, 1) & ' where champs1=" & DataGrid1(ligne, 0), cnx)
dta = New SqlDataAdapter(command)
Dim dts2 As New DataSet
dta.Fill(dts2, "MaTable")
si je mais ce code dans load ca marche pas, dans datagrid.textchanged ca marche pas, aidez moi, heelp
PS: voila mon code j'ai corrigé un truc