New Posts New Posts RSS Feed: Databinding the Grid and a relationship
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Databinding the Grid and a relationship

 Post Reply Post Reply
Author
BillG View Drop Down
DevForce MVP
DevForce MVP
Avatar

Joined: 05-Dec-2007
Location: Monroe, MI
Posts: 233
Post Options Post Options   Quote BillG Quote  Post ReplyReply Direct Link To This Post Topic: Databinding the Grid and a relationship
    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
 
Back to Top
DenisK View Drop Down
IdeaBlade
IdeaBlade


Joined: 25-Aug-2010
Posts: 715
Post Options Post Options   Quote DenisK Quote  Post ReplyReply Direct Link To This Post 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.

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down