Hi there, I have a barcode reader which scans the barcode of a product(s). Upon scanning the barcode I can quite easily get the selected product from the database as an object.
My problem is how would I go about implementing my software, such that for each product that I scan, how can I get these scanned item(s) to appear in the gridview dynamically at run time...? I am creating a winforms application. Not ASP.NET.
My gridview contains the following columns:: Prod ID | Name | Quantity | Price | Total.
Any suggestions would be of great help. What would be a good logic?
Kind regards
Maz
Loading
Suthish NairPosted Feb 19, 2012, 2:09 PM
refer
http://stackoverflow.com/questions/613881/how-to-read-a-value-from-a-barcode-reader
http://stackoverflow.com/questions/1264227/send-keystroke-to-other-control
Jignesh TrivediPosted Feb 16, 2012, 11:08 PM
The only thing I can suggest is that you add the row instead to the underlying data source to which the Grid view is bound.i.e if you bind datatable , then add a new DataRow to its Rows collection.
hope this help.