GB
GB

Reputation:

Silverlight DataGrid Refresh Between Xaml Files

I have a Page.xaml file and a AddNewProject.xaml. In the Page.xaml file I have a ProjectDetailsDataGrid and a button to add a new Project. When I click on the Add New Project button the AddNewProject.xaml file becomes visible for the user to enter new project information.

I am having a problem trying to refresh the ProjectDetailsDataGrid (on the Page.xaml page) to display the new info. entered from the AddNewProject.xaml page.

Is there anyway to accomplish refreshing a datagrid between two seperate xaml files?

Thank you for your help.

Upvotes: 0

Views: 1249

Answers (1)

Michael S. Scherotter
Michael S. Scherotter

Reputation: 10787

You want to use data binding to have both of the controls bind to the same data source - You will also need to implement INotifyPropertyChanged on your data source. See this tutorial on Data Binding it is a new topic to you

Upvotes: 1

Related Questions