Hi
If you really want to use the RowEnter event, then a completely different approach is needed.
Here is a stand alone example that may be of use to you. The area that you ask about is where I have the Label1.DayaBindings ....... (4 labels shown). If you want to try this example out then: A new Project, add a DataGridView named 'DGV', a ComboBox named 'CB', Label1, Label2, Label3 and Label4. Copy/Replace the Form1 code with this code.
NOTE: the ComboBox is just there to show you the advantage of using the data in this way.
' Form1 with DataGridView named 'DGV',
' ComboBox named 'CB', Label1, Label2,
' Label3 and Label4
Option Strict On
Option Explicit On
Public Class Form1
Dim dt As New DataTable
Dim BS As New BindingSource
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With dt
.Columns.Add("code", GetType(String))
.Columns.Add("First Name", GetType(String))
.Columns.Add("Last Name", GetType(String))
.Columns.Add("Account#", GetType(String))
' some dummyn data
.Rows.Add("AZ23BY675", "Les", "Hay", "WX33861A")
.Rows.Add("PQ7ZXT368", "Hossam", "Smith", "KK449834Z")
.Rows.Add("WWP988GTW", "Some", "body", "HP451187D")
.Rows.Add("SK59UGG", "Else", "Here", "FR9885465W")
End With
BS.DataSource = dt
DGV.DataSource = BS
With CB
.DataSource = BS
.DisplayMember = "Code"
.ValueMember = "Account#"
.DropDownStyle = ComboBoxStyle.DropDown
.AutoCompleteMode = AutoCompleteMode.SuggestAppend
.AutoCompleteSource = AutoCompleteSource.ListItems
End With
Label1.DataBindings.Add("Text", BS, "Code")
Label2.DataBindings.Add("Text", BS, "First Name")
Label3.DataBindings.Add("Text", BS, "Last Name")
Label4.DataBindings.Add("Text", BS, "Account#")
End Sub
End Class