I am working on Sales order picking list. I create customize form for barcode scanning.

Screenshot shows my customized form for barcode scanning on picking list level.
My question is that how can I automatically change the gridline when barcode scan.
I use temp table for populate the data in form after the scanning user submit grid data into regular table.
So what's the best practice I use to change line to next one automatically after barcode scan.
Thanks in advance.