private void timer1_Tick(object sender, EventArgs e)
{
try
{
timer1.Stop();
string strCurrentString = textBox1.Text.Trim().ToString();
if (strCurrentString != "")
{
this.dataGridView1.Rows.Add(textBox1.Text);
textBox1.Text = "";
}
textBox1.Focus();
}
catch (Exception ex)
{
MessageBox.Show(ex.Message);
}
}
Add A coloumn on Load page
this.dataGridView1.Columns.Add("Text", "Scan Value")
More Details you can find
http://www.citputer.com/tech/how-to-read-barcode-using-c/[
^]