Dear All
I want to attach textboxes to bindingnavigato r by writing code for it, but I am not able to do it thru coding. I have written following code. Please help
dim dr as datareader
dr = cmd.ExecuteRead er()
If dr.Read() Then
TextBox1.Text = dr(0)
TextBox2.Text = dr(1)
TextBox3.Text = dr(2)
TextBox4.Text = dr(3)
End If
Dim bs1 As New BindingSource()
bs1.DataSource = dr
BindingNavigato r1.BindingSourc e = bs1
Harman
I want to attach textboxes to bindingnavigato r by writing code for it, but I am not able to do it thru coding. I have written following code. Please help
dim dr as datareader
dr = cmd.ExecuteRead er()
If dr.Read() Then
TextBox1.Text = dr(0)
TextBox2.Text = dr(1)
TextBox3.Text = dr(2)
TextBox4.Text = dr(3)
End If
Dim bs1 As New BindingSource()
bs1.DataSource = dr
BindingNavigato r1.BindingSourc e = bs1
Harman
Comment