Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
195
UltraWinGrid how to add new item to list (Entity Framework)
posted

I can add new row (item to list), by converting it to BindingList (simple list raises exception)

But when I save context - changes are not being committed / saved to DB

Can you please advise how to archive that?

My code:



            // Flutent API
            var p_fluent = context.Products
                                        .Where (p => p.Price > 5)
                                        .OrderBy (p=> p.Name  ).ThenBy(p => p.Id)
                                        .ToList();

            var listBinding = new BindingList<Product> (p_linq.ToList ());
            

            grdMain.DataSource = listBinding;

Parents Reply Children
No Data