0





326
1

I have DataGridView, BindingNavigator and BindingSource...

Delete button works but add doesn't, how to debug this guys?

private void FillDataGrids()
    {
        formLoaded = false;
        voziloBindingSource.DataSource = r.DohvatiSvaVozila();
        djelatnikBindingSource.DataSource = r.DohvatiSveDjelatnike();
        formLoaded = true;
    }

I don't know what code to post, because everything else is set up through properties... I already have one DataGridView ("djelatnik") set up with bindingnavigator and the 2 functionalities work fine (add/delete)

Question author Chenchi | Source

0


1

It turns out my BindingNavigator's AddNewItem property was set wrong.

Once I set it to default name everything worked fine

Answer author Chenchi

Ask about this question here!