rwallacej
asked on
DataSet, BindingNavigator and DataGridView
Hi
I've have a Dataset displayed on a Datagridview.
I want a navigator for the datagridview. Using the following, the navigator is bound to DataSet (1...x records are on navigator), and data is displayed on DataGridView.
However I can't get navigator to changed selected item on datagridview.
Dim binding As New BindingSource
binding.DataSource = dt
Me.BindingNavigator1.Bindi ngSource = binding
DataGridView1.DataSource = binding 'tried ds and dt here too
Help please, thank-you.
I've have a Dataset displayed on a Datagridview.
I want a navigator for the datagridview. Using the following, the navigator is bound to DataSet (1...x records are on navigator), and data is displayed on DataGridView.
However I can't get navigator to changed selected item on datagridview.
Dim binding As New BindingSource
binding.DataSource = dt
Me.BindingNavigator1.Bindi
DataGridView1.DataSource = binding 'tried ds and dt here too
Help please, thank-you.
ASKER
Bob,
Can you elaborate a little please on what the revised code should be?
Thanks
Can you elaborate a little please on what the revised code should be?
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks Bob again for all your help.
works great
Richard
works great
Richard
Bob