I have a data grid in my parent view.
When I select an item in the grid,
I would like to open a child window
and pass the selected item value to the child window
I need to submit changes based on the selected value.
I'm revising the following code that is the click events that I need to transfer to the child window.
Can I inherit the domain datasource from the parent view?
private void ApproveCmd_Click(object sender, RoutedEventArgs e)
{
PA_Request selReq =(PA_Request) this.onticPMA_RequestRadGridView.SelectedItem;
if (selReq != null)
{
((PA_Request)this.PA_RequestRadGridView.SelectedItem).STATUS = "Approved";
this.PA_RequestDomainDataSource.SubmitChanges();
}
}
private void DissaproveCmd_Click(object sender, RoutedEventArgs e)
{
PA_Request selReq = (PA_Request)this.PA_RequestRadGridView.SelectedItem;
if (selReq != null)
{
((PA_Request)this.PA_RequestRadGridView.SelectedItem).STATUS = "Disapproved";
this.PA_RequestDomainDataSource.SubmitChanges();
}
}
private void ApplyCmd_Click(object sender, RoutedEventArgs e)
{
PA_Request selReq = (PA_Request)this.PA_RequestRadGridView.SelectedItem;
if (selReq != null)
{
((PA_Request)this.PA_RequestRadGridView.SelectedItem).STATUS = "Applied";
this.PA_RequestDomainDataSource.SubmitChanges();
}