Hi,
It seems thatthe child DataTable contains records that don't have the corresponding parent records in the parent DataTable.A solution is to fill data into the child DataTable according to the filter used on the parent DataTable. Another solution is to only retrieve the child records from the child database table corresponding to a given parent record and fillthe resultsetinto the child DataTable when needed.
Hope this helps.
If you have any question, please feel free to let me know.
Sincerely,
Linda Liu
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
end us any feedback you have about the help from MSFT at fbmsdn@microsoft.com.