Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

Binding bindingNavigator to DataGridView

$
0
0

Hello,

I am have issues trying to bind bindingNavigator to the DataGridView. My scenerio is like this:

I imported csv file into a DataGridView and I want to be able to navigate the records using the bindingNavigator.

How do I bind the bindingNavigator to DataGridView?

Here is what I have done so that isn't working:

private void frmTempGblPayrollCsvFile_Load(object sender, EventArgs e)
        {
            bindingSource1.DataSource = uS_Payroll_InterfaceDataSet;
            bindingNavigator1.BindingSource = bindingSource1;
            dataGridView2.DataSource = bindingSource1;
       }



Viewing all articles
Browse latest Browse all 2535

Trending Articles