Pass value instead of id in Gridview column in C#
                            
                         
                        
                     
                 
                
                    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.