Skip to content

Get values of textboxes in child-window to add row to BindableCollection-bound DataGrid #272

Answered by canton7
olegul86 asked this question in Q&A
Discussion options

You must be logged in to vote

Just stop and take a step back, please. You're making seemingly random changes, before I've even had a chance to catch up with the load of code you dumped on me previously.

Let's just simplify this a bit. You've got:

  1. LicenseHolderView/ViewModel, which has the DataGrid with the list of license holders.
  2. AddView/ViewModel, which lets the user add a new licence holder.

When the user clicks a button in LicenseHolderView, we show AddView. When they add a new license holder with AddView, we update the DataGrid.

Does that sound about right?

We've got a choice as to where we do the insertion into the database: in LicenseHolderView or in AddView. Let's do it in AddView, but either would work. We'…

Replies: 4 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@olegul86
Comment options

@olegul86
Comment options

@canton7
Comment options

@olegul86
Comment options

Comment options

You must be logged in to vote
2 replies
@olegul86
Comment options

@canton7
Comment options

Answer selected by olegul86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants