How can I link two different tables from a database to combobox ?
My combobox connection to the table is done with this code :
combobox1.ItemsSource = database.Mavads.ToList();
combobox1.DisplayMemberPath = "MavadName";
combobox1.SelectedValuePath = "MavadFe";
And:
<ComboBox HorizontalAlignment="Left" Margin="826,168,0,0" VerticalAlignment="Top" Width="120" Name="combobox1" SelectionChanged="combobox1_SelectionChanged" TabIndex="3" IsTextSearchEnabled="True" Loaded="combobox1_Loaded" />
This code is work correctly but just shows one table. I need both tables, not just one! What should I do?