Hi Chan,I have not seen your posted sample project, but I do know that when you are using any filter and you are adding records, you should set the filter off before adding then re-add the filter after adding.
There are several post related to this issue in the forums, do a search using the Filter keyword and you will find better explanations and sample code for this kind of issue.