A
astro
I'm working through the binder stuff trying to get a handle on it...
I have setup a master-detail dataset and have a couple of textboxes from the
master along with a datadgrid for the child data.
I have a navigation pallete with the usual arrows. All arrow btn's are
handled by the same handler.
Before moving off the current record I do the following:
BindingContext(Me.DataSet11, "table2").EndCurrentEdit()
BindingContext(Me.DataSet11, "table1").EndCurrentEdit()
'deal with current row state 1st
checkRowState(sender, e)
CheckRowSTate looks at the rowstate and calls the SaveRecord routnine if
needed.
Select Case mbinder.Current.row.rowstate
Case DataRowState.Added
Call saveRecord()
Case DataRowState.Modified
Call saveRecord()
End Select
Select Case mbinder2.Current.row.rowstate
Case DataRowState.Added
Call saveRecord()
Case DataRowState.Modified
Call saveRecord()
End Select
The problem i'm having is this: after changing a value in the child
(datagrid) description field the rowstate remains unchanged on the 2nd or
greater master record. If I make a change to the child rec on the 1st
master the rowstate is 'modified' as expected.....
at this point i'm just bewildered.............
I have setup a master-detail dataset and have a couple of textboxes from the
master along with a datadgrid for the child data.
I have a navigation pallete with the usual arrows. All arrow btn's are
handled by the same handler.
Before moving off the current record I do the following:
BindingContext(Me.DataSet11, "table2").EndCurrentEdit()
BindingContext(Me.DataSet11, "table1").EndCurrentEdit()
'deal with current row state 1st
checkRowState(sender, e)
CheckRowSTate looks at the rowstate and calls the SaveRecord routnine if
needed.
Select Case mbinder.Current.row.rowstate
Case DataRowState.Added
Call saveRecord()
Case DataRowState.Modified
Call saveRecord()
End Select
Select Case mbinder2.Current.row.rowstate
Case DataRowState.Added
Call saveRecord()
Case DataRowState.Modified
Call saveRecord()
End Select
The problem i'm having is this: after changing a value in the child
(datagrid) description field the rowstate remains unchanged on the 2nd or
greater master record. If I make a change to the child rec on the 1st
master the rowstate is 'modified' as expected.....
at this point i'm just bewildered.............