I have a parent-child table relation. when bsParent is navigated, bsChild follows. In code, I did this to determine the rowstate:
Expand|Select|Wrap|Line Numbers
- dim dtParent as datatable = ds.Parent.copy
- for i as integer to dtParent.defaultview.count - 1
- if dtParent.defaultview(i).row.rowstate = datarowstate.modified then
- 'code to process
- else
- dim dtChild as datatable = ds.Child.copy
- for j as integer to dtChild.defaultview.count - 1
- if dtChild.defaultview(j).row.rowstate = datarowstate.modified then
- 'code to process
- end if
- next
- end if
- next
Please help me kind Sirs & Madams. Thank you.