Bineesh  Viswanath

Bineesh Viswanath

  • NA
  • 1k
  • 777.2k

Pass value instead of id in Gridview column in C#

Oct 14 2013 5:56 AM
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)