I am very new at coding. Now I am going to tell you about my current situation and where I wanna go. Hope you will help.
I am using EF5.0 database first approach and
If you bind to query result you are using only one-way data binding. You need to have IBindingList
to get two way data binding. Try this:
ctx.Kolons.Load();
dataGridView1.DataSource = ctx.Kolons.Local.ToBindingList();
If it doesn't work try to use BindingSource
:
ctx.Kolons.Load();
gridBindingSource.DataSource = ctx.Kolons.Local.ToBindingList();
dataGridView1.DataSource = gridSource;