private void dataGridView1_RowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { DamageExpiry ord = new DamageExpiry(); ord.stock_id = Convert.ToInt32(dataGridView1.CurrentRow.Cells[0].Value.ToString()); ord.lbldamagecategpry.Text = dataGridView1.CurrentRow.Cells[1].Value.ToString(); ord.lbldamageproduct.Text = dataGridView1.CurrentRow.Cells[2].Value.ToString(); ord.txtdamagequantity.Text = dataGridView1.CurrentRow.Cells[3].Value.ToString(); ord.lblexpirydate.Text = dataGridView1.CurrentRow.Cells[5].Value.ToString(); ord.Show(); }