3
Answers

Pass value instead of id in Gridview column in C#

Bineesh  VP

Bineesh VP

11y
1k
1
Sir, I need your help to pass the value instead of id.

I am trying to pass barcode of a product. I have two product with barcode 100 and 101.



The event is selectedIndexChanged

here my code:-

dgvProduct.Rows[dgvProduct.Rows.Count - 1].Cells["dgvtxtBarcode"].Value= drdeliverynotedetails.ItemArray[1].ToString();  

please reply with code to pass or fill value of the column.
Answers (3)