How to assign textbox value from DataGridView?

Muhilan
Posted by Muhilan under VB.NET category on | Views : 3986
 If dgv.RowCount > 0 Then
TxtDesc.Text = dgv.CurrentRow.Cells("ITEMDESC").Value txtItemCode.Text = dgv.CurrentRow.Cells("PARTCODE").Value
txtPONumber.Text = dgv.CurrentRow.Cells("PONO").Value txtVendorName.Text = dgv.CurrentRow.Cells("VENDORNAME").Value
End If

Comments or Responses

Login to post response