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)
0
Sam Hobbs

Sam Hobbs

NA 28.7k 1.3m 14y

People should know that this question is also at Is there anyway to pass a .Net Socket to COM ? (by VARIANT???), Visual C++ ,, so before answering, check to see if the other thread has answers.