Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

Example to populate Combo box

$
0
0

Can someone point me to an example?

I have WPF MVVM program.

on the main screen I have 3 text boxes a combo box and button. When user clicks on the button a popup screen shows up and displays a data grid, when user double clicks on any row the pop up hides and program populates the text boxes with the data from the data grid row.  I am not sure what is the best way to populate the combo box with the data from the database.  I can get the data from the database and populate the combo box in the code behind module, but I don't think that's the correct way for MVVM program, I am coming from Windows Forms world and I am pretty new to WPF and MVVM.

Thank You.


Peter


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>