ChildTable In Popup Not Working Properly

I added child table in popup but if i change value of one row then that is change but when my focus go to other row then value again change to last. Also row not expand when click for expand that row is hidden and row also not delete.
So my question is is there anything else need for child table in Popup because same thing working in "Select Multi Batch Popup ",“Select Bom For Manufacture Popup”. If any ond did same please share code so i will check that code with my code