Hello,
I wish to bind a textbox on a child form
(frmprojectinfo) to a dataset value, I originally bound
it to a textbox on the current form and it worked
perfectly.
' Here is the code I use to call the child form
(frmProjectInfo)
dim objchild as new frmProjectInfo
objchild1.MdiParent = Me.MdiParent
objchild1.Show()
' Here is the code that I use to bind the child form
text box to projlist(a collection), the initial value is
set ok
Me.objchild1.ProjectSiteName.DataBindings.Add("Text",
ProjList, "ProjectSiteName")
This is the code that updates the bound field on the
child form, datasetprojects is a dataset
Dim DrCurrentProj As DataRow
DrCurrentProj = datasetProjects.Tables
("Project").Rows.Find(IntProjectId)
DrCurrentProj.BeginEdit()
DrCurrentProj("projectSiteName") =
Me.objchild1.ProjectSiteName.Text
DrCurrentProj.EndEdit()
Dim objCommandBuilder As New SqlCommandBuilder
(MysqlDataAdapter)
MysqlDataAdapter.Update(dsProjects, "Project")
'this does not update the bound field on the
child form, it does not give an error, it just remains at
the initial value, any ideas.
Any ideas of what I need to do to update the
ProjectSiteName text box on the child name, it worked fine
when it was just
me.projectsitename.text, do I need to refresh
the child form or something.
thanx in advance
Robert