Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid and databinded textbox

Status
Not open for further replies.

Ciscoski

Programmer
Apr 29, 2002
3
IT
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top