Image may be NSFW.
Clik here to view.
Here the user scans barcode consider item1 has "1111111" after which cursor will automatically got to next row now item2 barcode will be scanned..After which the contro(focus)l has to automatically go to "OK" button..... so that user can press enter and ok will be clicked .
Note:the rows are not constant
To be more specific i have used datagrid here