hello to all
first of all i'm sorry for my wrong english but i'm italian
second
i have do a form with a datagird and textboxs which are associeted to datatable fields. every time who i move to a record in datagrid the textboxs change their value but if i change this value , if i don't move in datagride, the value in dataset don't change ...
How i can do ???
Tnx
Ciscoski
part of code :
Load_TB_Categorie()
txtCategoria.DataBindings.Add("Text", DBDTCategorie, "NomeCategoria"
txtImmagine.DataBindings.Add("TEXT", DBDTCategorie, "Immagine"
Private Sub Load_TB_Categorie()
If DBConSql.State = ConnectionState.Open Then
Try
DBSqlAdp.Fill(DBDSCategorie, "Categorie"
DBDTCategorie = DBDSCategorie.Tables("Categorie"
DGCategorie.DataSource = DBDTCategorie
Catch sqlerr As SqlException
MsgBox(Messaggi.errori.ConnNotPresent)
End Try
Else
End If
End Sub
first of all i'm sorry for my wrong english but i'm italian
second
i have do a form with a datagird and textboxs which are associeted to datatable fields. every time who i move to a record in datagrid the textboxs change their value but if i change this value , if i don't move in datagride, the value in dataset don't change ...
How i can do ???
Tnx
Ciscoski
part of code :
Load_TB_Categorie()
txtCategoria.DataBindings.Add("Text", DBDTCategorie, "NomeCategoria"
txtImmagine.DataBindings.Add("TEXT", DBDTCategorie, "Immagine"
Private Sub Load_TB_Categorie()
If DBConSql.State = ConnectionState.Open Then
Try
DBSqlAdp.Fill(DBDSCategorie, "Categorie"
DBDTCategorie = DBDSCategorie.Tables("Categorie"
DGCategorie.DataSource = DBDTCategorie
Catch sqlerr As SqlException
MsgBox(Messaggi.errori.ConnNotPresent)
End Try
Else
End If
End Sub