<pre> var result = (from a in dbContext.tbl_Representaion select a).ToList(); cmbRepresentation.ItemsSource=result; cmbRepresentation.DisplayMemberPath = "Name"; cmbRepresentation.SelectedValuePath = "ID";</pre>
<pre> <ComboBox FlowDirection="RightToLeft" Height=" 25" HorizontalAlignment="Right" Margin="0,6,5,0" Name="cmbRepresentation" SelectedIndex="-1" VerticalAlignment="top" Width="100" SelectionChanged="cmbRepresentation_SelectionChanged" SelectedValue="{Binding Path=SelectedValue, UpdateSourceTrigger=PropertyChanged}" SelectedItem="{Binding SelectedItem}"> </ComboBox
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)