Okay I have a bound datagrid and some bound text boxes like so.
VB Code:
Me.txtmon.DataBindings.Add(New System.Windows.Forms.Binding("Text", ds, "employees.mon")) Me.txttue.DataBindings.Add(New System.Windows.Forms.Binding("Text", ds, "employees.tue")) Me.txtwed.DataBindings.Add(New System.Windows.Forms.Binding("Text", ds, "employees.wed")) Me.txtthu.DataBindings.Add(New System.Windows.Forms.Binding("Text", ds, "employees.thur")) Me.txtfri.DataBindings.Add(New System.Windows.Forms.Binding("Text", ds, "employees.fri")) Me.txtwk.DataBindings.Add(New System.Windows.Forms.Binding("Text", ds, "employees.wk")) Me.dgemployees.DataSource = ds Me.dgemployees.DataMember = "Employees"
If I alter the datatable using the textboxes or the datagrid. The data in the datatable does change. My problem is when I call the update method like so
VB Code:
daemployees.Update(ds, "Employees")
The data always updates back to the databse if I made the change in the datagrid, but it doesn't allways update if I used the textboxes.
V confused, any help would be great.




Reply With Quote