Hi
Very difficult to help when you show no code at all.
However, here is some code that may help. This is a stand alone example. If you want to try it, start a new project and add a ListBox1, DataGridView1, TextBoxes 1,2,3,4 and 5
The DataTable is created with dummy data just for demo purposes. When run, the data is bound to all the controls so that selecting an item int either the ListBox or the DataGridView, the TextBoxes will show the data accordingly.
Option Strict On
Option Explicit On
Public Class Form1
Dim dt As New DataTable("Freddy")
Dim BS As New BindingSource
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
With dt
.Columns.Add("NEM", GetType(String))
.Columns.Add("DEN", GetType(String))
.Columns.Add("PON", GetType(String))
.Columns.Add("ANON", GetType(String))
.Columns.Add("DATAC", GetType(String))
' some dummy data
For i As Integer = 0 To 9
.Rows.Add("NEM" & i.ToString, "DEN" & i.ToString, "PON" & i.ToString, "ANON" & i.ToString, "DATAC" & i.ToString)
Next
End With
BS.DataSource = dt
DataGridView1.DataSource = BS
With ListBox1
.DataSource = BS
.DisplayMember = "NEM"
End With
TextBox1.DataBindings.Add("Text", BS, "NEM")
TextBox2.DataBindings.Add("Text", BS, "DEN")
TextBox3.DataBindings.Add("Text", BS, "PON")
TextBox4.DataBindings.Add("Text", BS, "ANON")
TextBox5.DataBindings.Add("Text", BS, "DATAC")
End Sub
End Class