Hello,
I'm using databinding (through LINQ to SQL) in a C# form and I need to know how to update the BindingContext
when a new item is added to my Table.
More specifically, I have form that displays the properties of a project in various fields. The user can traverse to different projects through the project name combo box. At the bottom of the form I have a create button and a delete button. The problem arrises when the user creates or deletes a project because the binding context is not updated with the new list of projects. Therefore the user can not traverse to the new project or worse yet, the user can traverse to and attempt to modify a project that has been deleted.
I wish that I could call some method after a create or a delete so that the binding would update. Something like this.BindingContext[db.Projects].UpdateDammit()
.
Thanks for your help, JB