Print Page | Close Window

Databinding the Grid and a relationship

Printed From: IdeaBlade
Category: DevForce
Forum Name: DevForce 2010
Forum Discription: For .NET 4.0
URL: http://www.ideablade.com/forum/forum_posts.asp?TID=2436
Printed Date: 22-Jan-2026 at 1:16am


Topic: Databinding the Grid and a relationship
Posted By: BillG
Subject: Databinding the Grid and a relationship
Date Posted: 13-Jan-2011 at 10:52am
I have a relationship between Members and Dues. It is a one to many relationship. I populate the ItemsSource of my grid with Member.Dues, and it displays properly in the gird. When I add a row to the Dues table after the user clicks the Add button on the grid how do I tell the UI to refresh the data binding to show the new row in the grid. If I quit the form and come back in it shows properly.
 
If I were using an ObservableCollection called Dues I would just inherit from INotifyProperyChanged class.
 
What do I do when using relationships?
 
Bill
 



Replies:
Posted By: DenisK
Date Posted: 13-Jan-2011 at 4:06pm
Hi Bill;

Please see this post if you haven't. It sounds like it will answer your questions.

http://www.ideablade.com/forum/forum_posts.asp?TID=2437&title=binding-to-and-managing-collection-navigation-properties - http://www.ideablade.com/forum/forum_posts.asp?TID=2437&title=binding-to-and-managing-collection-navigation-properties



Print Page | Close Window