Barcodes can work in two modes
- COM port
- Keyboard
Different barcodes can work in either of these modes or in both of them. You should check yours.
If your reader works in COM port mode, then just read from this port. When you get the data, just create new item, add read number and add the item to datagrid.
If your reader works in keyboard mode it is much more complicated. The simplest option would be to keep focus on some TextBox and on ENTER add the content of the textbox to new row in datagrid.
Notice that readers that work in keyboard mode should give you ENTER at the end of the number read, for example:
"123456\n" or "123456\r\n"