A
Aaron Ackerman
I am at my wits end. I have tried everything. I have a WinForms N-Tier app
using VB.NET.
Visual DataAdapters, typed Datasets.
If I make change to one bound textbox no problem dataset gets updated and
change is made. If I change two or more fields NO changes get applied,
UNLESS I step through of course and then my two or more fields get updated
here is a code snippet
'I tried with and without this it doesn't seem to help
Me.txtHomePhone.DataBindings.Clear()
Me.txtWorkPhone.DataBindings.Clear()
Me.txtPostalCode.DataBindings.Clear()
'New field values get assigned
vdsClientUI.ClientByID.Rows(0).Item("PersonHomePhone") =
Me.txtHomePhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonWorkPhone") =
Me.txtWorkPhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonPostalCode") =
Me.txtPostalCode.Text
'passes dataset from the UI through the middle tier to the datalayer
objClient.UpdateClientByID(Me.vdsClientUI, "ClientByID")
'At the datalayer update gets applied
Public Overridable Function UpdateClientByID(ByRef vdsClient As
dsClient, ByRef TableName As String)
vdaClientByID.Update(vdsClient, TableName)
vdsClient.AcceptChanges()
End Function
'Stepping through does no good because all of the changes get applied, am I
missing a setting or a method call??
using VB.NET.
Visual DataAdapters, typed Datasets.
If I make change to one bound textbox no problem dataset gets updated and
change is made. If I change two or more fields NO changes get applied,
UNLESS I step through of course and then my two or more fields get updated
here is a code snippet
'I tried with and without this it doesn't seem to help
Me.txtHomePhone.DataBindings.Clear()
Me.txtWorkPhone.DataBindings.Clear()
Me.txtPostalCode.DataBindings.Clear()
'New field values get assigned
vdsClientUI.ClientByID.Rows(0).Item("PersonHomePhone") =
Me.txtHomePhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonWorkPhone") =
Me.txtWorkPhone.Text
vdsClientUI.ClientByID.Rows(0).Item("PersonPostalCode") =
Me.txtPostalCode.Text
'passes dataset from the UI through the middle tier to the datalayer
objClient.UpdateClientByID(Me.vdsClientUI, "ClientByID")
'At the datalayer update gets applied
Public Overridable Function UpdateClientByID(ByRef vdsClient As
dsClient, ByRef TableName As String)
vdaClientByID.Update(vdsClient, TableName)
vdsClient.AcceptChanges()
End Function
'Stepping through does no good because all of the changes get applied, am I
missing a setting or a method call??